Life game by 51b

char*p;i,s[9];main(n,u){read(0,p,p=s);for(n+=index(p,10)-p;*p;putchar(*p%5&&u-4?u-3?48:49:*p),p++)for(u=0,i=3*n;i--;)u+=i%n<3?p[i+~n]%2:0;}

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

download

return to the top page