electronic dice by kou

a;main(s){for(;a||~scanf("%d",&s);a%=4)printf(a++/3*8+"%d %d %d\n",a-2?s>2+3*a:s-1&&s-3,s&1&a,a?s>8-3*a:s-1&&s-3);}

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

download

return to the top page