| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 164912 | 张蔚林 | 猴子选大王 | C++ | Wrong Answer | 2 MS | 268 KB | 280 | 2026-11-08 09:06:07 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,um=0,sr=0,ds=0; bool a[1000]={0}; cin>>n>>m; while(sr!=n-1){ um++; if(um>n)um=1; if(!a[um])ds++; if(ds==m){ a[um]=1; ds=0; sr++; } } cout<<um<<' '; return 0; }
------Input------
226 188
------Answer-----
15
------Your output-----
98