#include<iostream>
using namespace std;
#define OK 1
#define ERROR 0
typedef int ElemType;
typedef int Status;
//定义单链表节点
typedef struct LNode{
ElemType data;
struct LNode *next;
}LNode, *LinkList;
//函数声明:n为总人数,m表示数到m的人出列
void josephus(int n, int m);
int main(){
int n,m;
cin>>n>>m;
josephus(n,m);
return 0;
}
void josephus(int n, int m){ //函数实现部分
/*请在这里填写答案*/
}
![](http://tiebapic.baidu.com/forum/w%3D580/sign=764d9d458cea15ce41eee00186013a25/731001e93901213fcd78bd1c11e736d12e2e95ac.jpg?tbpicau=2025-02-23-05_57d30eb96c40857d83bea5cd8954e5a8)
using namespace std;
#define OK 1
#define ERROR 0
typedef int ElemType;
typedef int Status;
//定义单链表节点
typedef struct LNode{
ElemType data;
struct LNode *next;
}LNode, *LinkList;
//函数声明:n为总人数,m表示数到m的人出列
void josephus(int n, int m);
int main(){
int n,m;
cin>>n>>m;
josephus(n,m);
return 0;
}
void josephus(int n, int m){ //函数实现部分
/*请在这里填写答案*/
}
![](http://tiebapic.baidu.com/forum/w%3D580/sign=764d9d458cea15ce41eee00186013a25/731001e93901213fcd78bd1c11e736d12e2e95ac.jpg?tbpicau=2025-02-23-05_57d30eb96c40857d83bea5cd8954e5a8)