摘要: 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' 阅读全文
posted @ 2017-10-18 19:57 Michael_Zhuang 阅读(201) 评论(0) 推荐(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 阅读全文
posted @ 2017-10-18 19:30 Michael_Zhuang 阅读(178) 评论(0) 推荐(0) 编辑