Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164935 欧阳俊懿 狐狸吃兔子 C++ Accepted 0 MS 268 KB 237 2026-11-08 11:21:48

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ bool d[11]={0}; for(int i=1,j=1;i<=1000;i++,j+=i){ if(j>10) j%=10; d[j]=1; } for(int i=1;i<=10;i++){ if(d[i]==0){ cout<<i<<" "; } } return 0; }