by@kuromunori
AC
538ms
2a+>Ia*I+!v v[[^$.t;I]< >[[3>8&[???]]]?~-!~]]v v[&8^$.t!-~?]]]!-~?] < >?4&]?*4&]?*[?4&[?*[?*+[?4&]?*]?*+?[[v \:6-*?[[*?[&5?]-*?]]*?]&5?[[-*?[[*? < o @
91 21 85 73 53 43 94 27 01 35 78 61
7991