二分
文章平均质量分 76
Viko_ReCode
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hdu2578 Dating with girls(1) (二分 || map)
题目链接:点击打开链接 在这题中使用二分查找比使用map查找更快 二分查找法代码如下(625ms): #include #include using namespace std; const int N = 111111; int a[N]; int main() { int t, n, *m, k, cnt, f; scanf("%d", &t);原创 2013-12-11 23:02:23 · 595 阅读 · 1 评论 -
binary_search、lower_bound、upper_bound
使用改写二分查找的方式重写了l原创 2014-05-21 18:54:25 · 470 阅读 · 0 评论
分享