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 to do with multiple roads?
Posted by Ade 21 Apr 2017 20:35
What's should the following input get?

3 4
1 2 1
2 3 1
1 3 1
1 2 1

3 4
1 2 1
2 3 1
1 3 1
1 2 10

-1

Thanks!
Re: What to do with multiple roads?
Posted by Ade 21 Apr 2017 20:47
got it.

My AC code gives

1 2 3
1 2 3