
最短路
文章平均质量分 88
ferric_ion
OI狗。音游狗。
展开
-
【最短路】CheapestRoute
有一列n个单元格组成的信息通道,从左至右标号为0至n-1。有一个信息要从最左边传送到最右边的单元格中。每一次你可以从一个单元格向相邻的左或右单元格传送。每一个单元格有一个价格p[i],如果要传入单元格i,则要花费p[i],另外,如果p[i]为-1,则表示不可以进入第i格。原创 2016-04-23 00:32:37 · 627 阅读 · 2 评论 -
【分层图】【BOI2007】Fence
题目描述Leopold is indeed a lucky fellow. He just won a huge estate in the lottery. The estate contains several grand buildings in addition to the main mansion, in which he intends to live from now on.原创 2016-12-31 22:07:43 · 1031 阅读 · 0 评论 -
【XJB研究】关于最短路径数
怎么求最短路径数呢?原创 2017-01-26 11:44:55 · 1173 阅读 · 0 评论