Problem2011--noip2018 对称二叉树

2011: noip2018 对称二叉树

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 1  Solved: 1
[Status] [Submit] [Creator:]

Description

Input

Sample Input Copy

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

Sample Output Copy

3

HINT

Source/Category