摘要: 树状数组+二分 sum(x)返回x之前有多少个点已经被取走了,a[i]+1为左边界,n为右边界,判断sum(x)和(x-1-a[i])大小即可 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N 阅读全文
posted @ 2022-05-21 16:20 xhy666 阅读(34) 评论(0) 推荐(0)