随笔分类 -  并查集

摘要:题目:https://vjudge.net/problem/POJ-3723 Windy has a country, and he wants to build an army to protect his country. He has picked up N girls and M boys 阅读全文
posted @ 2018-01-25 17:09 姿态H 阅读(300) 评论(0) 推荐(1)
摘要:题目:https://vjudge.net/contest/182418#problem/C Today is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know 阅读全文
posted @ 2017-12-06 17:41 姿态H 阅读(167) 评论(0) 推荐(0)
摘要:真的是自己写的哦! 题目:https://vjudge.net/contest/182418#problem/B B - The Suspects POJ - 1611 Severe acute respiratory syndrome (SARS), an atypical pneumonia o 阅读全文
posted @ 2017-12-05 22:22 姿态H 阅读(123) 评论(0) 推荐(0)
摘要:简单并查集 题目:https://vjudge.net/contest/182418#problem/A A - Wireless Network POJ - 2236 An earthquake takes place in Southeast Asia. The ACM (Asia Cooper 阅读全文
posted @ 2017-12-05 20:48 姿态H 阅读(151) 评论(0) 推荐(0)
摘要:一万只草泥马经过,经典的花了我特么一个礼拜 题目:https://vjudge.net/problem/POJ-1182 食物链 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知 阅读全文
posted @ 2017-12-04 21:51 姿态H 阅读(234) 评论(0) 推荐(0)