今天没有新动态
@kidultff

PAT-A 真题- 1018. Public Bike Management

原题干:There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and return it to any other stations in the city.The Public Bike ...
  • 0
  • 1
@kidultff

PAT-A 真题- 1030. Travel Plan(DFS筛选最优路径法)

原题干和原解答在这里:https://www.mmuaa.com/post/4146348c786b1cf1.html下面这种方法显然比原来的解答复杂,而且耗费资源,但是是最不容易出错的一种方法,也是一个万能的解题模板,使用Dijkstra找出所有的最短路径,然后再由DFS遍历所有路径, ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1030. Travel Plan

原题干:A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a traveler to decide the shortest path between his/her starti ...
  • 0
  • 0
@kidultff

多条最短路径问题再探-使用Dijkstra+DFS选出并输出最优路径

0x00、复杂多条最短路径问题前面我们提到过多条最短路径类问题,诸如"新增边权"、"新增点权"、"求最短路径条数(新增计数器)"等类问题,这里面新增的内容被我们称为"第二标尺"。(传送门:多条最短路径情况)在多条最短路径类问题上,一般的出题 ...
  • 0
  • 1
@kidultff

PAT-A 真题- 1003. Emergency

原题干:As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the length of each road be ...
  • 0
  • 1