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

If the input like this,what should I output?
Posted by qwt 4 Jan 2002 18:30
3 4
1 2 10
1 3 10
2 3 5
3 1 10
-1
The output of my program is 1 3 2
Posted by shitty.Mishka 4 Jan 2002 19:18
> 3 4
> 1 2 10
> 1 3 10
> 2 3 5
> 3 1 10
> -1
>
Re: or "2 3 1" It's the same.
Posted by Revenger and NSC 4 Jan 2002 20:49
> 3 4
> 1 2 10
> 1 3 10
> 2 3 5
> 3 1 10
> -1
>
Re: Are you sure?
Posted by light 6 Feb 2002 15:41
I think the correct answer should be 1 3
A agree with Light. It must be 1 3.
Posted by meoden 28 Feb 2002 08:17
> I think the correct answer should be 1 3
I have AC. Answer should be 1 2 3!
Posted by SPb SU #3 - 1 10 Apr 2002 17:41
> I think the correct answer should be 1 3
I have AC on this task.

My program output is 1 2 3.

Spb SU #9
No the correct answer is "1 2 3"
Posted by Mohammad Hossein Bateni 18 Oct 2002 14:47
No, the correct answer is "1 2 3"
because in the problem statement, it is said that "k>2", so "1 3" is
not a good answer!!
Re: No the correct answer is "1 2 3"
Posted by YingShanMingZhi 10 Aug 2004 21:55
my answer is"1 3 2"