正文
增加 1 行删除 1 行
18 行未改动19202122232425262799 行未改动18 行未改动倍增可以轻松解决问题。时间复杂度 $O(m\log m+(n+m)\log n)$。```cpp#include<bits/stdc++.h>#define ll long long#define For(i,a,b) for(int i=(a);i<=(b);++i)#define Rof(i,a,b) for(int i=(a);i>=(b);--i)using namespace std;const int Maxn=2e5;99 行未改动18 行未改动19202122232425262799 行未改动18 行未改动倍增可以轻松解决问题。时间复杂度 $O(m\log m+(n+m)\log n)$。```cpp#include<bits/stdc++.h>#define ll long long#define For(i,a,b) for(int i=(a);i<=(b);++i)#define Rof(i,a,b) for(int i=(a);i>=(b);--i)using namespace std;const int Maxn=2e5;99 行未改动