摘要: 将edge按权值排序 , O( m² ) 枚举边 , 利用并查集维护连通信息.-----------------------------------------------------------------------------------------#include#include#inclu... 阅读全文
posted @ 2015-05-31 14:51 JSZX11556 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 并查集离线搞....------------------------------------------------------------------------------------#include#include#include#include#include#include#define ... 阅读全文
posted @ 2015-05-31 09:41 JSZX11556 阅读(152) 评论(0) 推荐(0) 编辑