模板1题目 Code: #include<iostream> #include<string> #include<memory.h> typedef long long ll; #define FAST ios::sync_with_stdio(false),cin.tie(0),cout.tie(0) //#define int long long using namespace std; ll a, b, x, y, ans; struct node { ll l, r, w, f; }tree[500005*4]; inline v...