Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
107123 付博苏逸 哪几扇门是打开的 C++ Accepted 1 MS 268 KB 286 2025-01-17 13:31:51

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int room[110]={0},n=0; for(int j=2;j<=100;j++){ for(int i=1;i<=100;i++){ if(i%j==0){ room[i] = !room[i]; } } } for(int i=1;i<=100;i++){ if(room[i]==0){ cout<<i<<" "; } } return 0; }