正文
增加 3 行删除 3 行
11 行未改动12131415161718192035 行未改动565758596061626311 行未改动## 代码:```cpp#include<bits/stdc++.h>#define int long longusing namespace std;const int N=100005;int n,a[N],x,y,ans;vector<int> g[N];35 行未改动}dfs(1,0);cout<<ans*2+n;}```[提交记录](https://www.luogu.com.cn/record/246132606)11 行未改动12131415161718192035 行未改动565758596061626311 行未改动## 代码:```cpp#include<bits/stdc++.h>#define int long longusing namespace std;const int N=100005;int n,a[N],x,y,ans;vector<int> g[N];35 行未改动}dfs(1,0);cout<<ans*2+n;}```[提交记录](https://www.luogu.com.cn/record/246132606)