感受思路 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 7e6 + 10; struct node{ int dfn; ll x; }; int m, q; int n, u, v, t, now; ll ans1[maxn], ans2[maxn], a[maxn]; queue<node> que[5]; ll solve(){ int id = -1; ll val, tmp; if(!que[1].empt...