Jelly, 20(削除) 20 (削除ここまで) 18 bytes
&×ばつ
ḶÇÞ‘Øaḣ3¤ṫW€UGUḶ&×ばつḶỤØaḣ8¤ṫW€UGU
Port of my Python answer. Try it online.
EDIT: Dennis saved two bytes by using Ụ (grade up) instead of Þ (sort by)!
Jelly, (削除) 20 (削除ここまで) 18 bytes
Ḷ&×ばつḶỤØaḣ8¤ṫW€UGU
Port of my Python answer. Try it online.
EDIT: Dennis saved two bytes by using Ụ (grade up) instead of Þ (sort by)!
JellyJelly, 23 bytes20 bytes
&×ばつ&×ばつ
ḶÇÞ‘Øaḣ3¤ṫUz6z6Uj7ḶÇÞ‘Øaḣ3¤ṫW€UGU
Port of my Python answer. Is there a better way to do Uz6z6U? :(
Shuffling some things around, same length:Try it online.
’&×ばつ
ØaḣṫJÇÞ$$Uz6z6Uj7
Jelly, 23 bytes
&×ばつ
ḶÇÞ‘Øaḣ3¤ṫUz6z6Uj7
Port of my Python answer. Is there a better way to do Uz6z6U? :(
Shuffling some things around, same length:
’&×ばつ
ØaḣṫJÇÞ$$Uz6z6Uj7