Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
137205 杰苏尔纳迪尔 狼抓兔子 C++ 通过 100 0 MS 240 KB 256 2024-03-09 17:42:42

Tests(1/1):


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


测评信息: