摘要:
用优先队列模拟一下就ok啦。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int N = 3001; 8 int mp[N]; 9 10 struct Node 11 {12 ... 阅读全文
posted @ 2015-08-24 09:45
hxy_has_been_used
阅读(178)
评论(0)
推荐(0)
摘要:
比较基础的带权并查集,需要注意终止条件是'O'而不是'0'... 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int N = 20001; 8 const int MOD = 10... 阅读全文
posted @ 2015-08-24 09:06
hxy_has_been_used
阅读(156)
评论(0)
推荐(0)