Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1562--二叉树-叶结点数量
1562: 二叉树-叶结点数量
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
242
Solved:
148
[
Status
] [
Submit
] [Creator:
]
Description
已知一棵二叉树的叶节点个数为n,求该二叉树度为2的结点数
(2<=n<=1000000000) 注:度是儿子的个数
Sample Input
Copy
3
Sample Output
Copy
2
Source/Category
提高B