#include "cstdio" #include "queue" using namespace std; /** * todo * 约瑟夫环 * @return */ int circle02(){ int n,p,m; while (true) { scanf("%d %d %d", &n, &p, &m); if (n == 0 && p == 0 && m == 0) { break; } queue<int> children; fo...