标签:color ios out str style include ace 数位 name
1 #include<iostream> 2 using namespace std; 3 int a[1001];// 0正面朝上 4 void f(int n) 5 { 6 if(n==53) 7 return; 8 else 9 { 10 for(int i=1;i<=52;i++) 11 { 12 if(i%n==0) 13 { 14 if(a[i]==0) 15 a[i]=1; 16 else a[i]=0; 17 } 18 } 19 f(n+1); 20 } 21 } 22 int main() 23 { 24 f(2); 25 int tot=0; 26 for(int i=1;i<=52;i++) 27 { 28 if(a[i]==0) 29 { 30 tot++; 31 cout<<i<<" "; 32 } 33 } 34 cout<<endl; 35 cout<<tot; 36 return 0; 37 }
标签:color ios out str style include ace 数位 name
原文地址:http://www.cnblogs.com/zwfymqz/p/6599081.html