摘要:
#include<iostream> #include<string> #include<iomanip> #include<algorithm> using namespace std; #define MAXN 9999#define MAXSIZE 10#define DLEN 4class BigNum{ private: int a[500]; //可以控制大数的位数 int len; //大数长度public: BigNum(){ len = 1;memset(a,0,sizeof(a)); } //构造函数 BigNum(con.. 阅读全文
posted @ 2013-05-06 21:25
PegasusWang
阅读(263)
评论(0)
推荐(0)
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1016 1 #include <iostream> 2 #include <cstring> 3 #include <cstdio> 4 bool isp[40], vis[20]; //isp[]素数标记数组 5 int n, a[20]; 6 bool is_prime(int n) //n >= 2 7 { 8 bool flag = 1; 9 for (int i = 2; i * i <=... 阅读全文
posted @ 2013-05-06 20:52
PegasusWang
阅读(270)
评论(0)
推荐(0)
浙公网安备 33010602011771号