摘要:
[luogu4234]最小差值生成树 "luogu" 从小到大枚举边,并连接,如果已连通就删掉路径上最小边 lct维护 $ans=min(E_{max} E_{min})$ cpp include using namespace std; const int _=4e5+5; int re(){ i 阅读全文
摘要:
[清华集训2016]温暖会指引我们前行 "UOJ" "BZOJ" lct维护最大生成树和链上的边权和 cpp include using namespace std; const int _=4e5+5; int re(){ int x=0,w=1;char ch=getchar(); while( 阅读全文