Run ID:2789
提交时间:2024-02-24 18:25:00
#include<iostream> using namespace std; int main(){ int f[101]; for(int j=1;j<=100;j++){ int f[101]={1}; for(int i=1;i<=100;i++) if(i%2==0) f[i]=0; for(int i=1;i<=100;i++){ if(i%3==0){ if(f[i]==1) f[i]=0; else f[i]=1; } } } for(int i=1;i<=100;i++){ if(f[i]==1) cout<<i<<" "; } return 0; }