Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
104678 | 杨登博 | 哪几扇门是打开的 | C++ | Accepted | 0 MS | 260 KB | 463 | 2025-01-06 20:49:49 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() using namespace std; int main(){ int n[101]={0}; for(int i=2;i<=100;i++){ for(int j=1;j<=100;j++){ if(j%i==0){ n[j]=!n[j]; } } } for(int i=1;i<=100;i++){ if(n[i]==0){ cout<<i<<" "; } } return 0; }