摘要:
1666: [Usaco2006 Oct]Another Cow Number Game 奶牛的数字游戏 模拟 1 #include <cstdio> 2 inline int read() 3 { 4 register int f=1,c=getchar(),k=0; 5 while (c<'0' 阅读全文
摘要:
Solution:最短路树+并查集/树链剖分维护 1 #include <cstdio> 2 #include <queue> 3 #include <algorithm> 4 inline void swap(int &a,int &b) 5 { 6 register int tmp=b; 7 b 阅读全文