This commit is contained in:
Zengtudor 2024-11-16 09:11:37 +08:00
parent 7bb2ca422f
commit 3138c83120

View File

@ -35,7 +35,7 @@ int main(){
edges[u].push_back(v);
edges[v].push_back(u);
}
fd_ft(0, 1);
fd_ft(0, rt);
for(ll i{1};i<=q;i++){
ll u, v;
cin>>u>>v;