并查集
锅巴QAQ
三十年河东,三十年河西!
展开
-
POJ2534 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原创 2017-04-27 17:20:35 · 489 阅读 · 0 评论 -
HDU5631 Rikka with Graph
As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is one of them: Yuta has a non-direct graph with n vertices and n+1 e原创 2017-05-06 11:27:53 · 436 阅读 · 0 评论 -
POJ1611 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 is to原创 2017-04-27 18:51:44 · 365 阅读 · 0 评论 -
POJ2236 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原创 2017-04-27 18:43:12 · 492 阅读 · 0 评论 -
poj 2387---Til the Cows Come Home
Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Bessie needs her beauty sleep, so she wants to get b原创 2017-04-26 20:59:23 · 416 阅读 · 0 评论