Triangle by Lost_dog

main=do n<-readLn;mapM putStrLn[unwords[show z|y<-[x+1..n],let z=sum[1..y]-x,z<=n]|x<-[n,n-1..0],x^2<2*n-x]

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

download

return to the top page