
并查集
Z~柳
这个作者很懒,什么都没留下…
展开
-
新手训练题之HDU1213(并查集)
问题描述: 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-01-27 10:15:36 · 170 阅读 · 0 评论 -
hdu1102(最小生成树)
There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say two village A and B are connected, if and only if t...原创 2019-01-28 21:07:17 · 259 阅读 · 0 评论 -
poj1611(并查集)
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 s...原创 2019-01-29 13:50:17 · 215 阅读 · 0 评论 -
poj1251维修公路(最小生成树)
The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ago. But the jungle overtakes roads relentlessly, s...原创 2019-02-15 13:16:18 · 180 阅读 · 0 评论