Four Number Game by Hendrik

while 1:
 a,b,c,d=map(int,raw_input().split())
 while c|d:print a,b,c,d;a,b,c,d=map(abs,[b-a,c-b,d-c,d-a])
 print"0 0 0 0\n"

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

download

return to the top page