版本比较
P14076 [GESP202509 六级] 货物运输
正文
增加 2 行删除 2 行
7 行未改动89101112121314141516171828 行未改动7 行未改动using namespace std;const int N=1e5+10;// 存储边:v为邻接节点,l为边的长度struct node{ int v,l; int v,l;};vector<node> e[N]; vector<node> e[N];int f[N],d[N],n,sum;void dfs(int u,int cnt) { d[u]=cnt; // 记录当前节点到起点的距离 for (int i=0;i<e[u].size();i++) {28 行未改动