摘要:
题目导航:https://www.luogu.com.cn/problem/P3916 `unordered_map<int, vector>mp; int rr[100010]; int ans[100010]; int allnum; int sn; void dfs(int x) { rr[x 阅读全文
posted @ 2025-08-15 18:45
yubai111
阅读(13)
评论(0)
推荐(0)
摘要:
题目来源:https://www.luogu.com.cn/problem/P1892 题目答案:https://www.luogu.com.cn/record/230792958 这个是接上上一道拆点并查集的,道理很简单还是就合并就好了,但是要想通为什么合并了就可以使“敌人的敌人变成朋友”: 比如 阅读全文
posted @ 2025-08-15 12:33
yubai111
阅读(13)
评论(0)
推荐(0)

浙公网安备 33010602011771号