Run ID:128779

提交时间:2025-08-19 16:15:46

#include<bits/stdc++.h> 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; }