Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
110432 万隽宇 狐狸吃兔子 C++ Wrong Answer 1 MS 260 KB 495 2025-02-20 18:42:17

Tests(0/1):


Code:

#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=1,b[11]={0}; for(int i=1;i<=1000;i++){ a+=i; if(a>10) a%=10; b[a]=1; } for(int i=1;i<11;i++){ if(b[i]==0){ cout<<i<<" "; } } return 0; }


Run Info:

------Input------
0
------Answer-----
2 4 7 9
------Your output-----
3 5 8 10