二分
black-hole6
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
D - Pairs-思维+二分
D - Pairs 这是一个思维+二分的好题。 思路:先分情况 小于0,等于0和大于0 然后进行二分答案即可 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<queue> #include<stack> #i...原创 2020-02-20 15:04:30 · 816 阅读 · 1 评论 -
rent bike问题(二分+贪心)
题目描述: A group of n schoolboys decided to ride bikes. As nobody of them has a bike, the boys need to rent them. The renting site offered them m bikes. The renting price is different for different bik...原创 2018-11-07 17:32:50 · 498 阅读 · 0 评论 -
CodeForces - 287B-Pipeline(二分)
Vova, the Ultimate Thule new shaman, wants to build a pipeline. As there are exactly n houses in Ultimate Thule, Vova wants the city to have exactly n pipes, each such pipe should be connected to the ...原创 2018-12-20 16:23:57 · 445 阅读 · 0 评论 -
4 Values whose Sum is 0(枚举+二分)
The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A x B x C x D are such that a + b + c + d = 0 . In the followin...原创 2019-01-10 17:20:52 · 568 阅读 · 0 评论 -
Subsequence(二分)
A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length o...原创 2019-03-30 17:29:17 · 290 阅读 · 0 评论 -
救救兔子(二分)
链接:https://ac.nowcoder.com/acm/contest/372/B 来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 某天,一只可爱的小兔砸在路上蹦蹦跳跳地走着,怪人PM6出现了,于是小兔子被盯上了。 PM6:“免子。哦不,小兔子。你长得真好…...原创 2019-04-24 19:53:16 · 380 阅读 · 0 评论
分享