![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
并查集
文章平均质量分 66
mandmLee
这个作者很懒,什么都没留下…
展开
-
Problem B Reading books
Problem B Reading books (Input File: book.in / Standard Output) In the summer vacation, LRJ wants to improve himself in computer science. So he finds out N books of computer science in the schoo原创 2014-04-20 15:36:50 · 834 阅读 · 0 评论 -
hdu 1232 畅通工程(并查集模板题)
畅通工程 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 26766 Accepted Submission(s): 14065 Problem Description 某省调查城镇交通状况,得到现有城镇道路原创 2014-04-14 16:40:11 · 941 阅读 · 0 评论 -
FZU 2155 盟国
Problem 2155 盟国 Problem Description 世界上存在着N个国家,简单起见,编号从0~N-1,假如a国和b国是盟国,b国和c国是盟国,那么a国和c国也是盟国。另外每个国家都有权宣布退盟(注意,退盟后还可以再结盟)。 定义下面两个操作: “M X Y” :X国和Y国结盟 “S X” :X国宣布退盟 Input 多组case原创 2014-07-24 07:53:20 · 1477 阅读 · 0 评论 -
Codeforces Round #254 (Div. 2)B. DZY Loves Chemistry
B. DZY Loves Chemistry time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output DZY loves chemistry, and he enjoys mi原创 2014-07-07 08:56:35 · 1470 阅读 · 0 评论