无谓的味道

导航

2015年10月19日 #

hdu 1325 && poj 1308 Is It A Tree?(并查集)

摘要: DescriptionA tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edg... 阅读全文

posted @ 2015-10-19 20:44 无谓的味道 阅读(156) 评论(0) 推荐(0) 编辑

hdu 1272 小希的迷宫(并查集)

摘要: Problem Description上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从... 阅读全文

posted @ 2015-10-19 19:55 无谓的味道 阅读(149) 评论(0) 推荐(0) 编辑

poj 3126 Prime Path (BFS)

摘要: DescriptionThe ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four... 阅读全文

posted @ 2015-10-19 19:34 无谓的味道 阅读(164) 评论(0) 推荐(0) 编辑