PAT (Advanced Level) 刷题记录 1046 Shortest Distance (20分)
1046 Shortest Distance (20分)
The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.
Input Specification:
Each input file contains one test case. For each c
原创
2020-05-17 20:33:12 ·
139 阅读 ·
0 评论