正文
增加 1 行删除 1 行
18 行未改动19202122232425262732 行未改动18 行未改动using namespace std;const int N = 2e5 + 5;int q,n,a[N];long long cnt;int mp(long long x){ // 替代 map 的二分int pos = lower_bound(a + 1,a + n + 1,x) - a;int pos2 = upper_bound(a + pos,a + n + 1,x) - a;return pos2 - pos;}32 行未改动18 行未改动19202122232425262732 行未改动18 行未改动using namespace std;const int N = 2e5 + 5;int q,n,a[N];long long cnt;int mp(long long x){ // 替代 map 的二分int pos = lower_bound(a + 1,a + n + 1,x) - a;int pos2 = upper_bound(a + pos,a + n + 1,x) - a;return pos2 - pos;}32 行未改动