Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<tonc.h>
- #define l for(x=0;++x<239;)for(y=0;++y<159;)
- main(){R=1028;*P=32767;u8 x,y,s,m,p;for(;!(S=~K&1023););l M(x,y,Q()&1);for(;u8*v=(u8*)V;){F();l{for(m=-1,p=v[x+y*240],s=-p;++m<9;)s+=v[x+m%3-1+(y+m/3-1)*240];M(x,y,p?s<4&s>1:s==3);}}}
Add Comment
Please, Sign In to add comment