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
2055
. Urban Geography
WA #4
Posted by
Spatarel Dan Constantin
22 Oct 2018 23:39
input:
5 5
1 2 0
2 3 1
2 4 1
3 4 1
4 5 2
one possible output:
1 2 3 5
wrong output:
1 2 3 4 5
Don't forget that the output also needs to have as few edges as possible!
Re: WA #4
Posted by
Vit Demidenko
29 Apr 2021 16:30
Obviously, size of answer is always n-1
© 2000–2024
Timus Online Judge Team
. All rights reserved.