题解 P1656 炸铁路

题目 枚举割掉一条边,然后用并查集看是否为会有两个(或者多个)不联通点。 #include <bits/stdc++.h> using namespace std; #define N 5010 #define ll long long template <class T> inline void
posted @ 2022-09-07 21:59  雪之下,树之旁  阅读(10)  评论(0编辑  收藏  举报