并查集
文章平均质量分 84
路人张的鱼生
这个作者很懒,什么都没留下…
展开
-
Hihocoder-分数调查
题目名称:分数调查 题目链接: 描述 小Hi的学校总共有N名学生,编号1-N。学校刚刚进行了一场全校的古诗文水平测验。 学校没有公布测验的成绩,所以小Hi只能得到一些小道消息,例如X号同学的分数比Y号同学的分数高S分。 小Hi想知道利用这些消息,能不能判断出某两位同学之间的分数高低? 输入 第一行包含三个整数N, M和Q。N表示学生总数,M表示小Hi知道消息的总数,Q表示小Hi想询问的数量。 以下...原创 2019-08-24 21:43:51 · 133 阅读 · 0 评论 -
How Many Tables
题目名称:How Many Tables 题目链接:How Many Tables 描述 Today is Ignatius’ birthday. He invites a lot of friends. Now it’s dinner time. Ignatius wants to know how many tables he needs at least. You have to notic...原创 2019-08-12 09:55:45 · 154 阅读 · 0 评论 -
Hdu-Play on Words
题目名称:Play on Words 题目链接:Play on Words Problem Description Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that doors. Because there ...原创 2019-09-10 14:39:08 · 112 阅读 · 0 评论 -
Hdu-Connect the Cities
题目名称:Connect the Cities 题目链接:Connect the Cities Problem Description In 2100, since the sea level rise, most of the cities disappear. Though some survived cities are still connected with others, but mo...原创 2019-09-23 16:09:32 · 146 阅读 · 0 评论