Joshephus or MamakoDate Sequence EASY by kou

o;a[99];main(m,n,i,c){for(;o||~scanf("%d%d",&m,&n)&&memset(a+1,i=0,4*(o=m));a[i]=printf("%d%c",i,--o?32:10))for(c=n;c;c-=!a[i=++i>m?:i]);}

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

download

return to the top page