摘要: #include #include #include #include #include #include using namespace std; #define MAXN 9999 #define MAXSIZE 10000 #define DLEN 4 class BigNum{ private: int a[MAXSIZE]; //可以控制大数的位数 int l... 阅读全文
posted @ 2017-07-23 20:39 walfy 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 数据比较小时直接算,数据比较大时用公式1+1/2+...+1/n=inn+C+1/(2*n) ,C是欧拉常数0.5772156649 刚开始用的这个1+1/2+...+1/n=in(n+1)+C,结果一直wa。。。。 #include<map> #include<set> #include<cmat 阅读全文
posted @ 2017-07-23 20:24 walfy 阅读(443) 评论(0) 推荐(0) 编辑