poj 2909 哥德巴赫猜想
摘要:
水题#include <iostream>#include <stdio.h>#include <string.h>using namespace std;const int maxx=100000;bool prime[maxx+10];void getprime(){ memset(prime,1,sizeof(prime)); prime[0]=prime[1]=0; for(int i=2;i*i<=maxx;i++) if(prime[i]) for(int j=i*i;j<=maxx;j+=i) prime[j]=... 阅读全文
posted @ 2012-03-23 21:31 Inpeace7 阅读(377) 评论(0) 推荐(0) 编辑