版本比较
总结 (代码)
正文
增加 6 行删除 6 行
28 行未改动293031323333343536374 行未改动4243444546464748495025 行未改动7677787980808182838477 行未改动16216316416516616616716816917041 行未改动21221321421521621621721821922029 行未改动25025125225325425425528 行未改动 fa[ny]=nx; } cout << cnt; return 0;} }```第二题:```cpp#include <bits/stdc++.h>4 行未改动string find (string x){ if (fa[x]==x) return x; return fa[x]=find (fa[x]); } }int main ( ){ ios::sync_with_stdio(0); cin.tie(0);25 行未改动 cout << "No.\n"; } } return 0;} }```第三题:```cpp#include <bits/stdc++.h>77 行未改动 } } cout << l << "\n"; return 0;} }```第四题:```cpp#include <bits/stdc++.h>41 行未改动 mp[p]=1; } cout << mp.size ( ); return 0;} }```第五题:```cpp#include <bits/stdc++.h>29 行未改动 { cout << vis[i] << "\n"; } return 0;} }```