| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146690 | 李明秦 | 猴子选大王 | C++ | Wrong Answer | 2 MS | 272 KB | 282 | 2026-01-29 15:58:20 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n,a[301]={},b=0; cin>>n>>m; int t=n-1; int i=0; while(t){ if(!a[i]){ b++; if(b%m==0){ a[i]=!a[i]; t--; } } i++; i%=n; } i=0; while(a[i++]) cout<<i; return 0; }
------Input------
226 188
------Answer-----
15
------Your output-----
1234567891011121314