- 开关门
开关门
- 2023-11-11 20:18:18 @
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a[105]={0};
for(int i=1;i<101;i++)
{
for(int j=1;j<101;j++)
{
if(j%i==0)
{
if(a[j]==0)
{
a[j]=100;
}
else
{
a[j]=0;
}
}
}
}
for(int i=1;i<101;i++)
{
if(a[i]==100)
{
cout<<i<<" ";
}
}
return 0;
}
0 comments
No comments so far...
Information
- ID
- 806
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 7
- Tags
- # Submissions
- 149
- Accepted
- 33
- Uploaded By