跳到文章

本 日 公 休

Hi, this is Mendax. I’m documenting my learning notes in this blog.

摘要: #include<stdio.h> int Josephus(int n,int m){ if(n==1) return 0; else return(Josephus(n-1,m)+m)%n; } int main(){ int n,m; scanf("%d%d",&n,&m); printf(" 阅读全文
posted @ 2020-03-22 12:19 叁壹壹 阅读(239) 评论(0) 推荐(0)