- 博客(3)
- 收藏
- 关注
原创 hdu 2665 Kth number (函数式线段树)+ SPOJ Count on a tree
划分树解法可以参考: http://blog.csdn.net/freezuoguan/article/details/8490643链接: http://acm.hdu.edu.cn/showproblem.php?pid=2665题意:求区间第K大的数:朴素的想法是:首先离散化数列,对于数列的所有前缀都建立一棵线段树,以b[i]为根, 线段树[ l, r ] 存的是符合
2013-03-27 17:09:41 2059
原创 hdu 4507 吉哥系列故事——恨7不成妻
链接 http://acm.hdu.edu.cn/showproblem.php?pid=4507#include #include #include #include #include #include #include #include #include #include #include #include #include using namespa
2013-03-23 18:03:03 744
原创 uva 11361 Investigating Div-Sum Property
链接: http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=26570#include #include #include #include #include #include #include #include #include #include #include #include #incl
2013-03-22 16:29:09 769
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人