试过很多数据都能过,为什么过不了啊嗷 求大神指点下 #include<iostream> #include<cstring> #define ll long long #define endl "\n" using namespace std; const int N = 1e6 + 10; const int M = 1e5 + 10; struct Edge { int to, nxt; }edge[2 * N], qedge[2 * M]; int head[N]; int cnt; int qhead[M]; int qcnt; bool v...