cf/mirror

Guess the Tree

CF
429C2300· international master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4
1 1 1 4
Output
YES
Sample 2of 2
Input
5
1 1 5 2 1
Output
NO
429C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…