ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1004. Sightseeing Trip

What should I output if the test is like this
Posted by Yitao 6 Aug 2009 14:30
3 4
1 2 1
2 1 2
1 3 2
2 3 2
1 2 OR 1 2 3?
Re: What should I output if the test is like this
Posted by Sergey Lazarev (MSU Tashkent) 6 Aug 2009 18:34
"Each sightseeing route is a sequence of road numbers y1, …, yk, k > 2"
So, answer is: 1 2 3