![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
二分
leihao-lester
这个作者很懒,什么都没留下…
展开
-
K BEST(最大化平均值)
K BEST(最大化平均值) Demy has n jewels. Each of her jewels has some value vi and weight wi.Since her husband John got broke after recent financial crises, Demy has decided to sell some jewels. She has deci...原创 2019-12-06 23:57:00 · 304 阅读 · 0 评论 -
Frets On Fire
Frets On Fire Miyako came to the flea kingdom with a ukulele. She became good friends with local flea residents and played beautiful music for them every day. In return, the fleas made a bigger ukulel...原创 2019-12-03 00:05:46 · 215 阅读 · 0 评论 -
二分算法
二分算法 一.类型 查找某一有序序列中的某一元素的具体位置 查找出某一有序序列中某一元素第一次出现的位置 求单调函数零点 最大化最小值(例题见 D - Aggressive cows ) 最小化最大值 最大化平均值 二.STL中提供的二分方法 1.头文件: #include< algorithm > 2.对于从小到大排序好的整型数组a[n],假设有a[5]={0,2,3,3,5},...原创 2019-11-27 23:14:59 · 108 阅读 · 0 评论 -
Can you find it?
Can you find it?Can you find it?一.题解及分析 Can you find it? Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, C...原创 2019-11-27 21:25:40 · 156 阅读 · 0 评论