Problem3587--【Div2】GESP六级2026三月P1-完全二叉树

3587: 【Div2】GESP六级2026三月P1-完全二叉树

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description




Sample Input Copy

4
2 3
4 0
0 0
0 0

Sample Output Copy

4

Source/Category