小明计划到某网红旅游景区进行一次“特种兵”旅游。景区共有 N 个景点,编号从 1 到 N,编号为 0 的点表示景区入口。给定一个 (N+1)×(N+1) 的矩阵 G,其中:
小明计划到某网红旅游景区来一次“特种兵”旅游,景区有 N 个最点,请帮助小明规划一条游览路径,使得游览完所有景点花费的时间最短,以便于安排返程时间。
第一行,景点数量 N 。
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.