Joshephus or MamakoDate Sequence EASY by nn

for(;[n,k]=readline(o=0).split(' ');print(o))for(i=n;d=i--;o+=(o&&' ')+-~-c)for(c=1;c=(c-k)%d,d++<n;);

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

download

return to the top page