二分
文章平均质量分 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 · 546 阅读 · 1 评论 -
binary_search、lower_bound、upper_bound
使用改写二分查找的方式重写了l原创 2014-05-21 18:54:25 · 388 阅读 · 0 评论