并查集
文章平均质量分 81
下饭厨子
这个作者很懒,什么都没留下…
展开
-
hdu 4907 Task schedule
Task scheduleDescription有一台机器,并且给你这台机器的工作表,工作表上有n个任务,机器在ti时间执行第i个任务,1秒即可完成1个任务。有m个询问,每个询问有一个数字q,表示如果在q时间有一个工作表之外的任务请求,请计算何时这个任务才能被执行。机器总是按照工作表执行,当机器空闲时立即执行工作表之外的任务请求。 Input输入的第一行包含一个整数T, 表示一共原创 2016-07-27 10:48:37 · 240 阅读 · 0 评论 -
J HDU 5326 Work
WorkTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 5326DescriptionIt’s an interesting experience to move from IC原创 2016-08-19 17:32:58 · 376 阅读 · 0 评论 -
HDU 4707 Pet
PetTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 4707DescriptionOne day, Lin Ji wake up in the morning and found that h原创 2016-08-19 17:31:43 · 366 阅读 · 0 评论 -
HDU 1325 Is It A Tree?
Is It A Tree?Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1325DescriptionA tree is a well-known data structure that is原创 2016-08-19 17:30:17 · 248 阅读 · 0 评论 -
HDU 2120 Ice_cream's world I
Ice_cream's world ITime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 2120Descriptionice_cream's world is a rich country, it原创 2016-08-19 17:28:28 · 338 阅读 · 0 评论 -
HDU 1272 小希的迷宫
小希的迷宫Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1272Description上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。原创 2016-08-19 17:27:22 · 351 阅读 · 0 评论 -
HDU 1856 More is better
More is betterTime Limit:1000MS Memory Limit:102400KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1856DescriptionMr Wang wants some boys to help him with a原创 2016-08-19 17:26:18 · 393 阅读 · 0 评论 -
HDU 1213 How Many Tables
How Many TablesTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1213DescriptionToday is Ignatius' birthday. He invites a l原创 2016-08-19 17:22:57 · 402 阅读 · 0 评论 -
POJ 1611 The Suspects
The SuspectsTime Limit:1000MS Memory Limit:20000KB 64bit IO Format:%lld & %lluSubmit Status Practice POJ 1611DescriptionSevere acute respiratory syndrome (SARS), an aty原创 2016-08-19 17:21:51 · 341 阅读 · 0 评论 -
HDU 5631 Minimum Cut-Cut
Minimum Cut-CutTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 5631DescriptionAs we know, Rikka is poor at math. Yuta is worrying about this situ原创 2016-08-19 17:20:46 · 353 阅读 · 0 评论 -
HDU 1232 畅通工程
畅通工程Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1232Description某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使原创 2016-08-19 17:18:10 · 292 阅读 · 0 评论 -
HDU 1878 欧拉回路
欧拉回路Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1878Description欧拉回路是指不令笔离开纸面,可画过图中每条边仅一次,且可以回到起点的一条回路。现给定一个图,问是否存在欧拉回原创 2016-08-19 17:34:06 · 241 阅读 · 0 评论