Luke has a treasure map. The treasure map has N cities (Numbered 1 to N).
These cities are connected with some paths. And there is a treasure in every city.
So if Luke arrives a city, he can get the treasure in the city.
4 3 1 1 2 2 3 2 4 5 4 1 1 2 2 3 2 4 3 2
Case 1: 3 Case 2: 4
无
hrbeu