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