
|-----并查集
文章平均质量分 75
bblss123
浙江蒟蒻一只
展开
-
BZOJ3673&BZOJ3674 可持久化并查集及加强版
Description 自从zkysb出了可持久化并查集后…… hzwer:乱写能AC,暴力踩标程 KuribohG:我不路径压缩就过了! ndsf:暴力就可以轻松虐! zky:…… n个集合 m个操作 操作: 1 a b 合并a,b所在集合 2 k 回到第k次操作之后的状态(查询算作操作) 3 a b 询问a,b是否属于同一集合,是则输出1否则输出0 请注意本题采用强制在线,原创 2016-06-21 10:33:21 · 427 阅读 · 0 评论 -
COCI2015/2016 Contest#4 E Solution
Description A long time ago in a galaxy far, far away, there were N planets. There were also N − 1 interplanetary paths that connected all the planets (directly or indirectly). In other words, the net原创 2016-06-20 13:50:57 · 773 阅读 · 0 评论