Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
128782 | 罗迎甲 | 狐狸吃兔子 | C++ | Accepted | 1 MS | 260 KB | 503 | 2025-08-19 16:22:35 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a[11]={}; for(int i=1,j=1;i<=1000;i++,j+=i){ if(j>10)j%=10; a[j]=1; } int i=1; while(a[i])i++; cout<<i; for(i+=1;i<10;i++){ if(!a[i])cout<<' '<<i; } return 0; }