char s[];i;main(){for(;i--||gets(s,i=10);)putchar(i?"100102221"[s[10-i]*3+s[21-i]&15]:10);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page