by@kuromunori
AC
1044ms
1a+&wIa*I+!]I;k4&[2&w8&[???2&w]]]?-!k[[?[?*v \R:6k+*?[~w*?[&4~k~-*?]]?]*?[&4?w-*?]&5?[[< o @
96 02 82 30 22 46 07 80 90 98 97 17
96566