void f(int i,string s){if(i>0)for(int x;++x<4;f(i-1," "+s+string(x)+"."))write(s,x);};f((int)stdin,"");
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page