摘要:
ABC 256 G - Black and White Stones 题目: https://atcoder.jp/contests/abc256/tasks/abc256_g 题解: https://atcoder.jp/contests/abc256/editorial/4142 思路: 求一个 阅读全文
摘要:
AcWing 1073. 树的中心 #include<bits/stdc++.h> using namespace std; typedef long long LL; vector<int> adj[10010]; vector<int> w[10010]; int p[10010]; int w 阅读全文