
并查集
deebcjrb
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
(kuangbin带你飞--并查集)Wireless Network(并查集模板)
原题目:An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unexpected aftershock attacked, all computers in...原创 2019-09-17 22:51:25 · 154 阅读 · 0 评论 -
(kuangbin带你飞--并查集)The Suspects (并查集模板题)
原题目:Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best strategy i...原创 2019-09-18 23:32:04 · 189 阅读 · 0 评论 -
(kuangbin带你飞--并查集)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 notice that not all the friends know each ot...原创 2019-09-19 11:29:29 · 134 阅读 · 0 评论 -
(kuangbin带你飞--并查集)How Many Answers Are Wrong HDU(带权并查集)
原题目:TT and FF are ... friends. Uh... very very good friends -________-bFF is a bad boy, he is always wooing TT to play the following game with him. This is a very humdrum game. To begin with, TT sh...原创 2019-09-24 22:43:55 · 143 阅读 · 0 评论 -
(kuangbin带你飞--并查集) 食物链(带权并查集)
动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。有人用两种说法对这N个动物所构成的食物链关系进行描述:第一种说法是"1 X Y",表示X和Y是同类。第二种说法是"2 X Y",表示X吃Y。此人对N个动物,用上述两种说法,一句接一句地说出K句话,这K句话...原创 2019-09-25 22:59:50 · 168 阅读 · 0 评论 -
(kuangbin带你飞--并查集)Supermarket
原题目:A supermarket has a set Prod of products on sale. It earns a profit px for each product x∈Prod sold by a deadline dx that is measured as an integral number of time units starting from the moment...原创 2019-09-28 18:17:35 · 121 阅读 · 0 评论