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
Spatarel Dan Constantin
WA #4
[1] // Problem
2055. Urban Geography
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!
Vit Demidenko
Re: WA #4
// Problem
2055. Urban Geography
29 Apr 2021 16:30
Obviously, size of answer is always n-1
© 2000–2026
Timus Online Judge Team
. All rights reserved.