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 1471. Distance in the Tree

WA 5
Posted by Solus 18 Apr 2021 20:51
What can it be?(tests or ideas, something pls)

passes

3
0 1 1
1 2 0
1
1 2

ans:
0

but still WA


Edited by author 20.04.2021 00:52
Re: WA 5
Posted by Solus 20 Apr 2021 23:09
try
5
0 1 1
1 2 1
3 0 1
0 4 1
4
0 4
4 0
0 2
2 0