随笔分类 -  Disjoint Sets

摘要:Time Limit: 5000MSMemory Limit: 128000KTotal Submissions: 13696Accepted: 3384DescriptionYou are given a bunch of wooden sticks. Each endpoint of each stick is colored with some color. Is it possible t... 阅读全文
posted @ 2009-10-10 03:53 Weiyu Wang 阅读(789) 评论(0) 推荐(0)
摘要:并查集DescriptionThere are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out how many different religions students in your u... 阅读全文
posted @ 2009-10-08 03:53 Weiyu Wang 阅读(301) 评论(0) 推荐(0)