摘要:
"传送门" 正反两边dijkstra染色,然后枚举一下边,求出最小值就好啦 代码: c++ include include include include include using namespace std; void read(int &x) { char ch; bool ok; for(o 阅读全文
摘要:
"传送门" 这个题好像 "bzoj4455:[Zjoi2016]小星星" 然后就可以类比那个思路将树形dp改为矩阵树定理,然后就做完了 代码: c++ include include include include using namespace std; void read(int &x) { c 阅读全文