1962: 完全二叉树 - CCF-GESP2026年3月六级C++

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:1

Description

Input

Output

输出一行,一个整数,表⽰所有子树中完全二叉树的数量。

Sample Input Copy

4
2 3
4 0
0 0
0 0

Sample Output Copy

4