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 1752. Tree 2

WA 5/6 test case
Posted by Risminator 9 Apr 2022 02:51
If you're having trouble with WA 5 or WA 6, try this test:

10 1
2 1
3 2
4 3
5 2
6 3
7 2
8 2
9 3
10 8
9 2

Correct answer is 2, 4 or 6.