会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
null1019
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
19
20
21
22
23
24
25
26
27
···
52
下一页
2014年8月19日
hdu 4961 Boring Sum
摘要: 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
阅读(260)
评论(0)
推荐(0)
2014年8月18日
hdu 4419 Colourful Rectangle
摘要: 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
阅读(175)
评论(0)
推荐(0)
hdu 1542 Atlantis
摘要: 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
阅读(104)
评论(0)
推荐(0)
2014年8月17日
cf C. Cupboard and Balloons
摘要: 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
阅读(143)
评论(0)
推荐(0)
cf C. Tourist Problem
摘要: 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
阅读(146)
评论(0)
推荐(0)
2014年8月16日
hdu 4027 Can you answer these queries?
摘要: 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
阅读(133)
评论(0)
推荐(0)
hdu 1255 覆盖的面积
摘要: 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
阅读(142)
评论(0)
推荐(0)
hdu 1698 Just a Hook
摘要: 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
阅读(151)
评论(0)
推荐(0)
2014年8月15日
zoj 1610 Count the Colors
摘要: 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
阅读(160)
评论(0)
推荐(0)
hdu 4302 Holedox Eating
摘要: 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
阅读(141)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
···
52
下一页
公告