Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
107124 | 邹昊辰 | 哪几扇门是打开的 | C++ | Accepted | 0 MS | 260 KB | 280 | 2025-01-17 13:35:21 |
#include <bits/stdc++.h> using namespace std; int main (){ int a[102]={0}; for(int i=2;i<=100;i++){ for(int j=i;j<=100;j++){ if(j%i==0){ a[j]=!a[j]; } } } for(int z=1;z<=100;z++){ if(a[z]==0){ cout<<z<<" "; } } return 0; }