摘要: 1 #include<iostream> 2 using namespace std; 3 const int maxn=10000; 4 int a[maxn]; 5 int n,k; 6 bool prime(int now) 7 { 8 if (now<2) return false; 9 if (now==2) return true;10 for (int i=2;i<now;i++){if (now%i==0) return false;}11 return true;12 }13 void get_input()14 {15 c... 阅读全文
posted @ 2012-07-03 15:42 NoRush 阅读(620) 评论(1) 推荐(1) 编辑