Result

WA

Duration

672ms

Code [DL]

##@DEBUG
s//d/
w/d/
  s/d/k/
  s/1(?=0)|2(?=[01])|3(?=[0-2])|4(?=[0-3])|5(?=[0-4])|6(?=[0-5])|7(?=[0-6])|8(?=[0-7])|9(?=.)/d/
/
s/^d//
g/\d/1/
g/k/0/
m/.$/S//%%`///


# g/./%&,/
# q/

stdin

07014838912835401039876543210353854323126549389491432856082928546501371624103173642340123456789601465

stdout

01011101101101001011000000000110100001011001011010100101010101001001110101001010100110111111111001110

stderr