并查集
.....
小白程序猿一枚
专注于后端开发
展开
-
POJ 2524 Ubiquitous Religions(并查集)
There are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out how many different religions students in your university beli...原创 2020-02-15 20:30:05 · 170 阅读 · 1 评论 -
Supermarket POJ - 1456 (贪心+并查集)
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 the s...原创 2020-01-21 10:15:39 · 218 阅读 · 1 评论 -
POJ 2236 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 the n...原创 2019-08-08 09:33:32 · 65 阅读 · 0 评论 -
POJ 2492 A Bug's Life(并查集的变形)
BackgroundProfessor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of the opposite gende...原创 2019-08-07 17:49:26 · 132 阅读 · 0 评论 -
HDU 1829 A Bug's Life
BackgroundProfessor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of the opposite gende...原创 2019-09-27 16:14:17 · 102 阅读 · 0 评论