2015年6月2日

uva 10668

摘要: #include #include #include #include using namespace std;int main(){ double L,n,C,R; while (~scanf("%lf%lf%lf",&L,&n,&C)) { if (L 1e-6) {... 阅读全文

posted @ 2015-06-02 20:29 yifi 阅读(214) 评论(0) 推荐(0) 编辑

hduacm 5104

摘要: http://acm.hdu.edu.cn/show#include #include #include using namespace std;const int maxn = 10000;int np, pri[maxn+5], vis[maxn+5];void prime_table(int ... 阅读全文

posted @ 2015-06-02 19:34 yifi 阅读(296) 评论(0) 推荐(0) 编辑

uva 10491

摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1432#include int main () { int a, b, c; while (s... 阅读全文

posted @ 2015-06-02 19:08 yifi 阅读(124) 评论(0) 推荐(0) 编辑

uva 1210

摘要: #include#includeusing namespace std;const int MAXN = 10000 + 10;bool notprime[MAXN];//值为false表示素数,值为true表示非素数int s[MAXN];int c[100000000];void init(){... 阅读全文

posted @ 2015-06-02 11:36 yifi 阅读(211) 评论(0) 推荐(0) 编辑

导航