摘要: 描述在一个吝啬的国度里有N个城市,这N个城市间只有N-1条路把这个N个城市连接起来。现在,Tom在第S号城市,他有张该国地图,他想知道如果自己要去参观第T号城市,必须经过的前一个城市是几号城市(假设你不走重复的路)。 代码: 阅读全文
posted @ 2016-03-20 15:37 Vmetrio 阅读(152) 评论(0) 推荐(0)
摘要: Description Bessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old home 阅读全文
posted @ 2016-03-20 11:15 Vmetrio 阅读(167) 评论(0) 推荐(0)