Feature:刷题
@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

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
@kidultff

PAT-A 真题- 1021. Deepest Root

原题干:A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a highest tree. Such a root is called the de ...
  • 0
  • 1
@kidultff

PAT-A 真题- 1013. Battle Over Cities

原题干:It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we need to repair any other ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1034. Head of a Gang

原题干:One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we say that A and B is related. The weight of a relation is defined to be the total time len ...
  • 0
  • 0