Combination Lock by chocobi

#define f(x,y)(d=abs(a[x]-a[y]))>5?10-d:d
char a[9];d;main(i,j,k){for(;gets(a);printf("%d\n",i<j?i+(j<k?j:k):j+(i<k?i:k)))i=f(2,0),j=f(1,0),k=f(2,1);}

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page