Codeforces 1260D A Game with Traps(二分查找)
思路:1.首先贪心,我们肯定需要从ddd大的怪物开始消灭;2.设自己在ttt的限制内可以消灭所有ddd大于rsrsrs的怪物,我们二分查找出最小的rsrsrs,然后遍历整个士兵数组查询哪些士兵符合就ok了~代码:#include<bits/stdc++.h>using namespace std;const int MAX_N = 2e5 + 5;int m, n, ...