摘要: 题目 题目链接:https://atcoder.jp/contests/agc029/tasks/agc029_f 给定 \(n-1\) 个点集(全集为 \(\{1,2,...,n\}\)), 从每个集合内选两个点连边, 使得最后形成一棵树。 输出方案。 \(n\leq 10^5,\sum m\le 阅读全文
posted @ 2021-02-03 22:31 stoorz 阅读(63) 评论(0) 推荐(0)