我wa了半天代码,然后翻了题解 #include <iostream> #include <vector> #include <assert.h> #include <algorithm> #define int long long using namespace std; const int N = 1e5 + 12; typedef pair<int, int> pii; int n; int arr[N]; int idx = 0; struct node { int fr, sc; int len; bool opera...