#include<bits/stdc++.h> using namespace std; using ll=long long; using ull=unsigned long long; using i128=__int128_t; using u128=__uint128_t; using ld=long double; vector<ll>v(1e6+1,0); void solve() { ll n,l,r,MAX=0;//差分板子题 维护一个最大值即可 cin >> n; while(n--) { cin >> l >> r...