随笔分类 - 并查集
摘要:题目 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
阅读全文
摘要:题目 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
阅读全文