main(a,b,c,d){scanf("%d",&a);for(b=c=d=1;b<=a;++b,d+=c++<d?0:(c=1))printf("%d%c",b,c<d?32:10);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page