![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二分
TheWise_lzy
已毕业,社畜一枚
展开
-
HDU4430 Yukari's Birthday 二分
Problem DescriptionToday is Yukari's n-th birthday. Ran and Chen hold a celebration party for her. Now comes the most important part, birthday cake! But it's a big challenge for them to place n cand...原创 2018-04-13 08:55:13 · 211 阅读 · 0 评论 -
ACM 二分 Aggressive cows & 尺取 Subsequence
滴,集训第三天打卡。今天是堆,二分和尺取,不过我好像没做到用堆的...二分的套路是: while(f<=l)//二分 { mid=(f+l)/2; if(hs(mid))//判断中间值是否满足条件 f=mid+1; else l=mid-1;} 尺取法:尺取法通常是对数组保存一对下标,即所选取的区间的左右端点,然后根据实际情况不断地推进区间左右端点以得...原创 2017-07-20 10:50:57 · 462 阅读 · 0 评论