for(;l=readline(o='');print(it=o))for(i in l+l)o+=(c=l[i]||'')<1&&it[i]||c
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page