Triangle by msk

n,d;main(t,w){scanf("%d",&n);for(t<n&&main(t+d++,w=d);n/t*w;t+=++w)printf("%d%c",t,n>t+w?32:10);}

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

download

return to the top page