摘要: https://codeforces.com/contest/1559/problem/D1 题目大意: 给定两棵树,树的节点都是从1到n,这两棵树分别建了m1和m2条边; 问我们还能构建哪些边?依然保持无环的状态?? input 3 2 2 1 2 2 3 1 2 1 3 output 0 inp 阅读全文
posted @ 2022-10-13 20:25 高尔赛凡尔娟 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 强推,这篇博客写得也太好了!!! https://www.acwing.com/solution/content/137064/ #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL 阅读全文
posted @ 2022-10-13 09:30 高尔赛凡尔娟 阅读(24) 评论(0) 推荐(0) 编辑