| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156211 | 孔声豪 | 哪几扇门是打开的 | C++ | Accepted | 1 MS | 260 KB | 287 | 2026-06-27 10:47:59 |
#include<bits/stdc++.h> using namespace std; int main(){ bool a[100]={}; for(int i=2;i<=100;i++){ for(int j=i;j<=100;j++){ if(j%i==0){ a[j]=!a[j]; } } } for(int i=1;i<=100;i++){ if(a[i]==0){ cout<<i<<' '; } } return 0; }