Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
137225 | 陈航 | 狼抓兔子 | C++ | 通过 | 100 | 0 MS | 236 KB | 264 | 2024-03-09 17:45:16 |
#include<bits/stdc++.h> using namespace std; int main(){ int cave[11]={0},pos=1; for(int i=1;i<=1000;i++){ cave[pos]=1; pos=(pos+i+1)%10; if(pos==0) pos=10; } for(int i=1;i<=10;i++) if(cave[i]==0) cout<<i<<endl; return 0; }