摘要:
冰雪大冒险 #include <bits/stdc++.h> #define KV(x) #x << " " << x signed main() { std::cin.tie(nullptr)->sync_with_stdio(false); int n, m; std::cin >> n >> 阅读全文
摘要:
法一:dsu #include <bits/stdc++.h> using ll = long long; using namespace std; const int N = 100010; struct node { int v, nxt; }e[N * 2]; int h[N], idx; i 阅读全文