摘要:
https://www.luogu.org/problemnew/show/P2299 这就是一道裸题,就不讲什么了,需要学习的话去看模板 #include <algorithm>#include <iostream>#include <cstring>#include <cstdio>#inclu 阅读全文
posted @ 2019-03-02 12:57
七彩~~(0-0)
阅读(222)
评论(0)
推荐(0)
摘要:
就是一道裸题,求的就是有几块生成树,算并查集的时候加一个判断就好了(每合并一次tot++,直到tot==n-k为止,然后输出就好了) https://www.luogu.org/problemnew/show/P1195 #include <algorithm>#include <iostream> 阅读全文
posted @ 2019-03-02 12:53
七彩~~(0-0)
阅读(141)
评论(0)
推荐(0)

浙公网安备 33010602011771号