二分,二分答案,分数规划
https://codeforces.com/problemset/problem/2009/E
https://codeforces.com/problemset/problem/1982/C