版本比较
P8654 [蓝桥杯 2017 国 C] 合根植物 题解
正文
增加 3 行删除 3 行
1234567 行未改动14151617181920212219 行未改动[可能更好的食用体验](/blog/523641/P8654) $|$[题目传送门](/problem/P8654) $|$[我的其他题解](/blog/523641/#type=题解-New)------------7 行未改动${\large\color{#00CD00}\text{代码}}$```cpp#include<bits/stdc++.h>using namespace std;long long m,n,k,a,b,ans;int f[1000005];int find(int x)//找到某个点的根并路径压缩(即将沿路的所有点的根都设为最终找到的根)19 行未改动1234567 行未改动14151617181920212219 行未改动[可能更好的食用体验](/blog/523641/P8654) $|$[题目传送门](/problem/P8654) $|$[我的其他题解](/blog/523641/#type=题解-New)------------7 行未改动${\large\color{#00CD00}\text{代码}}$```cpp#include<bits/stdc++.h>using namespace std;long long m,n,k,a,b,ans;int f[1000005];int find(int x)//找到某个点的根并路径压缩(即将沿路的所有点的根都设为最终找到的根)19 行未改动