Invert FizzBuzz by clock

for(p=print;s=readline().replace(/\S{8}/g,0).match(/[FB0]/g).join('_*');m?p((n=m.index)+1,n+m[0].length):p())m=Array(13).join('__F_BF__FB_F__0').match(s=='F_*B'?'FB':s)

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

download

return to the top page