程序设计竞赛 基本——二分 二分查找和二分答案(最大的最小,最小的最大,最值问题)。 //二分查找可用lower_bound和upper_bound函数实现 //最大 long long l = 最小可能值, r = 最大可能值, ans = 0; while ...