Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95983 | 牛延希 | 狐狸吃兔子 | C++ | Accepted | 1 MS | 260 KB | 286 | 2024-11-02 16:50:59 |
#include<iostream> #include<queue> using namespace std; int main(){ int a[10]={0},s=0; for(int i=1;i<=1000;i++){ s+=i; a[s%10]=1; }for(int i=0;i<10;i++){ if(a[i]==0){ if(i) cout<<i<<" "; else cout<<10; } } return 0; }