Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
137186 凌愉晴 狼抓兔子 C++ 通过 100 0 MS 236 KB 266 2024-03-09 17:40:38

Tests(1/1):


#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; }


测评信息: