Run ID:151768

提交时间:2026-04-18 16:47:34

#include<iostream> using namespace std; int a[1005]; int main() { int t = 1 ; for (int i = 1;i<=30;i++) { if (t == 10) { t = 1; } if (t == 9) { a[i] = 1; } if (t < 9 && a[i] != 1) { t++; } } for (int i = 1;i <=30;i++) { if (a[i] == 0) { cout<<i<<" "; } } }