Joshephus or MamakoDate Sequence EASY by notogawa

m@main=getLine>>=putStrLn.unwords.f.map read.words>>m
f[m,n]=n#[1..m]where 1#(a:x)=show a:n#x;n+1#(a:x)=n#(x++[a]);_#_=[]

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

download

return to the top page