Rule 30 by siokoshou

using C=System.Console;class P{static void Main(){string s="  "+C.ReadLine()+"  ";for(int i=0,a;;C.Write(" ##"[5/a%5]))a=(s[i]&1)*4+(s[++i]&1)*2+(s[i+1]&1)+1;}}

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

download

return to the top page