二分
Timeclimber
这个作者很懒,什么都没留下…
展开
-
hdu 4004 The Frog's Games(二分)
The Frog's GamesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 8574 Accepted Submission(s): 3992Problem DescriptionThe annual Games in frogs...原创 2018-03-31 18:56:43 · 249 阅读 · 0 评论 -
hdu 4288 Coder(STL)
CoderTime Limit: 20000/10000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6452 Accepted Submission(s): 2400Problem Description In mathematics and computer scie...原创 2018-04-23 21:36:17 · 248 阅读 · 0 评论 -
CF 483B Friends and Presents(二分)
B. Friends and Presentstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have two friends. You want to present each of them several positive inte...原创 2018-07-06 14:09:59 · 464 阅读 · 0 评论 -
二分板子
写法来自《算法竞赛进阶指南》,现记录一下,方便以后查找。 整数集合上的二分 在单调递增序列a中查找>=x的数中最小的一个(即x或x的后继)while(l<r){ int mid=(l+r)/2; if(a[mid]>=x) r=mid; else l=mid+1;}return a[l]; ...原创 2018-07-28 20:25:48 · 1696 阅读 · 0 评论