Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
108007 | 何思佳 | 狐狸吃兔子 | C++ | Wrong Answer | 1 MS | 264 KB | 337 | 2025-01-19 11:33:05 |
#include<bits/stdc++.h> using namespace std; int main() { int vd[10]={0}; int ps=0; int sp=1; for(int i=0;i<1000;i++){ vd[ps]=1; ps=(ps+sp)%10; sp++; } for(int i=0;i<10;i++){ if(vd[i]==0){ cout<<i+1<<' '; } } return 0; }
------Input------
0
------Answer-----
2 4 7 9
------Your output-----
3 5 8 10