delete pics to save space
This commit is contained in:
13
history_source/ccf 入门篇/U5/5.2.3.cpp
Normal file
13
history_source/ccf 入门篇/U5/5.2.3.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
bool p[52];
|
||||
for(int i=0;i<52;i++) p[i]=1;
|
||||
for(int i=2;i<=52;i++)
|
||||
{
|
||||
for(int a=1;a*i<=52;a++) p[a*i-1]=!p[a*i-1];
|
||||
}
|
||||
for(int i=0;i<52;i++) if(p[i]) cout<<i+1<<" ";
|
||||
while(true);
|
||||
}
|
Reference in New Issue
Block a user