
专题五 并查集
[kuangbin带你飞] 专题五 并查集
白雪黑夜我不停歇
这个作者很懒,什么都没留下…
展开
-
POJ 1733 Parity game
题目链接DescriptionNow and then you play the following game with your friend. Your friend writes down a sequence consisting of zeroes and ones. You choose a continuous subsequence (for example the subsequence from the third to the fifth digit inclusively) an原创 2020-07-30 15:19:44 · 246 阅读 · 0 评论 -
POJ 1456 Supermarket
添加链接描述DescriptionA 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 the sale begins. Each product takes precis原创 2020-07-29 16:05:22 · 240 阅读 · 0 评论 -
HDU 3038 How Many Answers Are Wrong
题目链接Problem DescriptionTT 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 should write down a sequence of integers-_-原创 2020-07-25 15:16:52 · 124 阅读 · 0 评论 -
POJ 1182 食物链
题目链接向量路径压缩详细代码Description动物王国中有三类动物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句话有的是真的,有的是假的。当一句话满足下列三条之一时,这原创 2020-07-22 17:13:59 · 236 阅读 · 0 评论 -
HDU 1213 How Many Tables
题目链接Problem DescriptionToday 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 other, and all the friends do not want原创 2020-07-21 16:07:40 · 133 阅读 · 0 评论 -
POJ 1611 The Suspects
题目链接DescriptionSevere 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 is to separate the suspects from others.In th原创 2020-07-21 15:31:52 · 173 阅读 · 0 评论 -
POJ 2236 Wireless Network
题目链接DescriptionAn 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 the network were all broken. The computers a原创 2020-07-21 14:39:56 · 135 阅读 · 0 评论