Run ID:89759
提交时间:2024-09-07 08:35:52
#include<bits/stdc++.h>; using namespace std; int main(){ int a[102] = {0}; for(int j=1;j<=100;j++){ for(int i=j;i<=100;i += j){ a[i] = !a[i]; } } for(int i=1;i<=100;i++){ if(a[i] == 1){ cout<<i<<" "; } } }