网站首页
编程语言
数据库
系统相关
其他分享
编程问答
C130
2024-05-29
C130 并查集 P1197 [JSOI2008] 星球大战
视频链接: P1197[JSOI2008]星球大战-洛谷|计算机科学教育新生态(luogu.com.cn)//并查集#include<iostream>#include<cstdio>#include<cstring>usingnamespacestd;constintN=400005;inth[N],from[N],to[N],ne[N],idx;voidadd(intu,intv){from[