
图论+搜索题目
# HDU--图论+搜索题目
OPA_heiyaa
嗨嗨嗨
展开
-
HDU--3786--思维好题--floyd()算法--超详细
如果A,B是C的父母亲,则A,B是C的parent,C是A,B的child,如果A,B是C的(外)祖父,祖母,则A,B是C的grandparent,C是A,B的grandchild,如果A,B是C的(外)曾祖父,曾祖母,则A,B是C的great-grandparent,C是A,B的great-grandchild,之后再多一辈,则在关系上加一个great-。Input输入包含多组测试用例,...原创 2020-04-27 17:39:01 · 257 阅读 · 0 评论 -
HDU--1054--二分图--树状dp
Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is very sad. Now he has the following problem. He must defend a medieva...原创 2020-02-24 15:20:00 · 165 阅读 · 0 评论 -
HDU--1301--构图+最小生成树
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, so...原创 2020-02-24 15:17:39 · 175 阅读 · 0 评论 -
HDU--1217--伪floyd算法+思维--题目创新
Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For example, suppose that 1 US Dollar buys 0.5 Britis...原创 2020-02-24 15:14:39 · 199 阅读 · 0 评论 -
HDU--1162--构图思维
Eddy begins to like painting pictures recently ,he is sure of himself to become a painter.Every day Eddy draws pictures in his small room, and he usually puts out his newest pictures to let his friend...原创 2020-02-24 15:11:44 · 116 阅读 · 0 评论 -
HDU--1142--Dijkstra+记忆化搜索
Jimmy experiences a lot of stress at work these days, especially since his accident made working difficult. To relax after a hard day, he likes to walk home. To make things even nicer, his office is o...原创 2020-02-24 15:07:38 · 158 阅读 · 0 评论 -
HDU--1683--prim算法
省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可)。经过调查评估,得到的统计表中列出了有可能建设公路的若干条道路的成本。现请你编写程序,计算出全省畅通需要的最低成本。Input测试输入包含若干测试用例。每个测试用例的第1行给出评估的道路条数 N、村庄数目M ( < 100 );随后的 N行对应村庄间道路的成本,每...原创 2020-02-22 15:11:14 · 140 阅读 · 0 评论