Skip to main content
Menu
Problems
Contributors
API
API Documentation
API Tools
My Account
Profile
Sign In
Select a problem or
browse problems
All Judges
Sphere Online Judge
Toph
Dev Skill
CATS Online Judge
URI Online Judge
Facebook Hacker Cup
Light Online Judge
Google Code Jam
UVa Online Judge
ACM-ICPC Live Archive
122
Problem ID:
122
Trees on the Level
Hints
UVa Online Judge
Problem Statement
Single Output Problem
Solution
forthright48
Most Popular Input
bryton
Notes:
The judge's input probably does not contain a case where there exist multiple roots. However, the input uDebug makes no assumption on this front. Also, the solution on uDebug handles these types of cases correctly.
Select Input
(4)
Sign Up to Vote
User
Date
Votes
1
bryton
03 May
2016 11:05:19
29
2
Anjupiter
16 Sep
2016 12:49:44
26
3
rafastv
21 Jun
2017 14:09:00
26
4
rafastv
21 Jun
2017 13:53:14
17
Delete Input
Add Input
Input
Copy Input
Accepted Output
Copy Output
Your Output