Box Coloring by 0mg

for(h=p=0;s=readline(v='');print(h=v))for(i in s)v+=1-s[i]?' ':+h[i]||+v[i-1]||++p

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

download

return to the top page