ENG
RUS
Timus 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 you have WA3
Posted by
MrBones
25 Jan 2017 04:16
Try this test:
6 6
1 2 1
2 3 100
3 1 99
4 5 150
5 6 1
6 4 1
-1
Answer: 4 5 6
© 2000–2024
Timus Online Judge Team
. All rights reserved.