Looped grid by pooq

int main(){int a=(int)Stdio.stdin.gets();for(int i;i<a*a;)write(abs(i/a-i%a)+1+(i++%a+2>a?"\n":" "));}

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

download

return to the top page