首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
1789the专题
【并查集】ZOJ1789The Suspects
ZOJ1789The Suspects 用简单的并查集水了。。。看到有的题解用的是sum[ra] += sum[rb],这种叫什么名字,不记得了,但是这样肯定比我的好点。 #include <stdio.h>#include <iostream>#include <string>#include <cstring>using namespace std;int fa[30005]
阅读更多...