Four Number Game by inaniwa

A[];*p;main(){for(;~scanf("%d %d %d %d\n",A,A+1,A+2,A+3);puts(""))for(;vprintf()-8|A[3];)for(p=A;p-A<4;*p++=abs(*p-p[1]))p[4]=*p;}

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

download

return to the top page