electronic dice by fill

j;main(i){for(;~scanf("%d",&i);printf("%d %d %d\n%d %d %d\n%d %d %d\n\n",i>2?1:0,0,j,i-6?0:1,i%2?1:0,i-6?0:1,j,0,i>2?1:0))j=(i-1)*(i-3)?1:0;}

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

download

return to the top page