#D4387. Placing Medals on a Binary Tree
Placing Medals on a Binary Tree
Placing Medals on a Binary Tree
Example
Input
6 2 3 1 1 4 2
Output
Yes Yes Yes No Yes No
inputFormat
Input
6 2 3 1 1 4 2
outputFormat
Output
Yes Yes Yes No Yes No
样例
6
2
3
1
1
4
2
Yes
Yes
Yes
No
Yes
No
</p>