Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
104675 | 杨宸熙 | 哪几扇门是打开的 | C++ | Wrong Answer | 1 MS | 260 KB | 342 | 2025-01-06 20:46:55 |
#include<iostream> using namespace std; int main() { int n[100]={0}; for(int i=2;i<=100;i++){ for(int j=1;j<=100;j++){ if(i%j==0){ n[j]=!n[j]; } } } for(int i=1;i<=100;i++){ if(n[i]==0){ cout<<i<<" "; } } return 0; }
------Input------
0
------Answer-----
1 4 9 16 25 36 49 64 81 100
------Your output-----
2 5 6 7 8 10 12 15 16 21 22 23 24 25 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 100