洛谷 1182 数列分段Section II

【题解】   最大值最小化,那么一般要联想到二分。二分一个最大值,然后check一下能否分成小于等于m段即可。 1 #include<cstdio> 2 #include<algorithm> 3 #include<cstring> 4 #define LL long long 5 #define rg register 6 #define N 200010 7 using name
相关文章
相关标签/搜索