上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 56 下一页
摘要: A超级水,三分钟1a #include<map> #include<set> #include<cmath> #include<queue> #include<stack> #include<vector> #include<cstdio> #include<cassert> #include<io 阅读全文
posted @ 2017-07-26 12:34 walfy 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round #395 (Div. 2) 最近忘了写,直接扔代码好了 #include<map> #include<set> #include<cmath> #include<queue> #include<stack> #include<vector> #include<cst 阅读全文
posted @ 2017-07-26 10:19 walfy 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 打表欧拉函数,求2到n的欧拉函数和 #include<map> #include<set> #include<cmath> #include<queue> #include<stack> #include<vector> #include<cstdio> #include<cassert> #inc 阅读全文
posted @ 2017-07-25 13:53 walfy 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 二分 #include<map> #include<set> #include<cmath> #include<queue> #include<stack> #include<vector> #include<cstdio> #include<cassert> #include<iomanip> # 阅读全文
posted @ 2017-07-24 11:52 walfy 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 模板题,不过好像有点问题,当a==1的时候,答案把一也算进去了,要减去 #include<map> #include<set> #include<cmath> #include<queue> #include<stack> #include<vector> #include<cstdio> #inc 阅读全文
posted @ 2017-07-24 10:24 walfy 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 很容易推出来的公式ans=n^(k-1)*k*sum 然后快速幂就好了 #include<map> #include<set> #include<cmath> #include<queue> #include<stack> #include<vector> #include<cstdio> #inc 阅读全文
posted @ 2017-07-24 09:50 walfy 阅读(210) 评论(0) 推荐(0) 编辑
摘要: #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) 编辑
摘要: 这是一场爆0的比赛。。。。。。 第一题wa了20发,longlong改double再改unsigned long long还是wa,最后判断的时候改成除,边界设为1e19就过了 #include<map> #include<set> #include<cmath> #include<queue> # 阅读全文
posted @ 2017-07-21 19:25 walfy 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 唯一分解定理 先分解面积,然后除2,再减去面积%长度==0的情况,注意毯子不能是正方形 #include<map> #include<set> #include<cmath> #include<queue> #include<stack> #include<vector> #include<cstd 阅读全文
posted @ 2017-07-20 19:45 walfy 阅读(219) 评论(0) 推荐(0) 编辑
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 56 下一页