bzoj3237[Ahoi2013]连通图(线段树分治,并查集)
传送门:https://www.lydsy.com/JudgeOnline/problem.php?id=3237
cdqcdqcdq 分治的题,拿来练线段树分治了
怎么暴力怎么来,搞成加边直接做
注意跑得很慢,输出用 putsputsputs
#include<bits/stdc++.h>
using namespace std;
namespace io {
const ...
原创
2019-02-22 21:23:46 ·
410 阅读 ·
0 评论