Four Number Game by clock

for(p=print;o=readline(i=0).split(' ');p())for(;i||p((n=o.slice()).join(' ')),n[2]+n[3];)o[i]=Math.abs(n[i++]-n[i%=4])

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

download

return to the top page