随笔分类 -  并查集

摘要:题目 One day n cells of some array decided to play the following game. Initially each cell contains a number which is equal to it's ordinal number (star 阅读全文
posted @ 2022-02-21 14:52 Benincasa 阅读(28) 评论(0) 推荐(0) 编辑
摘要:题目 DZY loves chemistry, and he enjoys mixing chemicals. DZY has n chemicals, and m pairs of them will react. He wants to pour these chemicals into a t 阅读全文
posted @ 2022-01-23 23:31 Benincasa 阅读(22) 评论(0) 推荐(0) 编辑