
HDU
Mei废话
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU 1698 Just a Hook
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1698题意:屠夫的钩子由等长的金属材料构成(1~N),每段的值为1,2或3,改变x~y之间的值,最后输出总和#include const int maxn=100000;struct SegmentTree{ int l, r, lazy, sum;}st[maxn<<2];int t,原创 2012-08-02 14:35:35 · 412 阅读 · 0 评论 -
HDU 1026 Ignatius and the Princess I
题目 http://acm.hdu.edu.cn/showproblem.php?pid=1026BFS+优先队列,需要记录路径。#include #include #include using namespace std;const int maxn=100;const int inf=0x7fffffff;struct map{ int f,原创 2014-03-18 14:08:24 · 678 阅读 · 0 评论