Box Coloring by clock

for(n=i=a=s='';s+=readline()+"\n",n<1260;a+=c<'#'?c:+a[n-2]||+a[n-51]||++i)c=s[n++]
print(a)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page