#并查集#信息学奥赛一本通 1346 亲戚

连接php 题目 询问两人是否为亲戚。git 分析 并查集web 代码 #include <cstdio> #include <cctype> using namespace std; int n,m,f[20001],p; int getf(int u){return (f[u]==u)?u:f[u]=getf(f[u]);} int in(){ int ans=0; char c=getch
相关文章
相关标签/搜索