Joshephus or MamakoDate Sequence EASY by koi

h[80],i,j;main(m,n){for(;~scanf("%d%d",&m,&n);puts(h))for(bzero(h,328);j<m*n;)h[i=i%m+1]||++j%n||printf(" %d"+(j==n),h[i]=i);}

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

download

return to the top page