本文内容转自互联网(百度文库)
Problem one: Trains
Thelocal commuter railroad services a number of towns in Kiwiland. Because ofmonetary concerns, all of the tracks are 'one-way.' That is, a route fromKaitaia to Invercargill does not imply the existence of a route fromInvercargill to Kaitaia. In fact, even if both of these routes do happen toexist, they are distinct and are not necessarily the same distance!
Thepurpose of this problem is to help the railroad provide its customers withinformation about the routes. In particular, you will compute the distancealong a certain route, the number of different routes between two t