上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 52 下一页
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4961先打个表,把每个数的约数存起来,然后从前往后扫一遍,结果存在f[i],然后从后往前扫一遍,结果存在c[i],最后算f[i]*c[i]的和。 1 #include 2 #include 3 #include... 阅读全文
posted @ 2014-08-19 18:57 null1019 阅读(254) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4419题意:给出3种颜色,重叠会生成新的颜色,然后有一些矩形,求出每种颜色的面积。转化为二进制表示颜色:001 R ,010G,100B,011RG,101RB,....111RGB;在结构体里面加上一个len[8... 阅读全文
posted @ 2014-08-18 19:55 null1019 阅读(154) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1542 1 #include 2 #include 3 #include 4 #define maxn 200000 5 using namespace std; 6 7 int n; 8 ... 阅读全文
posted @ 2014-08-18 10:18 null1019 阅读(96) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/342/problem/C 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 __int64 r,h; 8 9 int main()10... 阅读全文
posted @ 2014-08-17 20:14 null1019 阅读(121) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/340/problem/C 1 #include 2 #include 3 #include 4 #define maxn 100010 5 #define ll __int64 6 using namespace std; 7 8... 阅读全文
posted @ 2014-08-17 17:14 null1019 阅读(134) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4027x可能比y大。 区间的每一个数在经过几次开方之后会变成1之后,在这个区间全部变成1之后,这个区间不用向下更新。这里可以判断一下。。 1 #include 2 #include 3 #include ... 阅读全文
posted @ 2014-08-16 16:08 null1019 阅读(123) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1255 1 #include 2 #include 3 #include 4 #define maxn 100010 5 using namespace std; 6 7 int t,n; ... 阅读全文
posted @ 2014-08-16 10:31 null1019 阅读(128) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1698 1 #include 2 #include 3 #include 4 #define maxn 100010 5 #define ll __int64 6 using namespace std; 7... 阅读全文
posted @ 2014-08-16 09:53 null1019 阅读(147) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=610先用线段树维护区间颜色的覆盖,然后在把区间的颜色映射到数组,再从数组统计颜色。 1 #include 2 #include 3 #include 4 #defin... 阅读全文
posted @ 2014-08-15 21:06 null1019 阅读(152) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4302 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define maxn 100010 7 using namespace std... 阅读全文
posted @ 2014-08-15 15:15 null1019 阅读(135) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 52 下一页