Four Number Game by nn

System.in.eachLine{for(s='';s?c+d:1;s+="$a $b $c $d\n")(a,b,c,d)=s?[b-a,c-b,d-c,a-d]*.abs():it.split()*.toLong();println s}

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

download

return to the top page