Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151746 王培臻 哪几扇门是打开的 C++ Accepted 0 MS 264 KB 321 2026-04-18 14:41:02

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main() { long long a[101]={0}; for(int j=2;j<=100;j++){ for(int i=1;i<=100;i++){ if(i%j==0){ if(a[i]==0){ a[i]=1; }else{ a[i]=0; } } } } for(int i=1;i<=100;i++){ if(a[i]==0){ cout<<i<<" "; } } return 0; }