Result

WA

Code [DL]

$ 'j'      #(c){j}(x)-@
 --(!x!)(!c!)(c)(x)g<
$ 'main'@     #(x)(c)-@
 |#      \-uo--
 | \{j}i- \    >#
 9  \    >u-1q/
 \-1a--e/

stdin

0948641009821085135820252894593713339696670594094680102769389452494390047152129432346465227717668253

stdout

stderr

Crash: No valid move

strace