Problem2946--二叉树-叶结点数量练习

2946: 二叉树-叶结点数量练习

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

Description

已知一棵二叉树的叶结点个数为n,求该二叉树度为2的结点数
(2<=n<=1000000000)   注:度是儿子的个数

Sample Input Copy

3

Sample Output Copy

2

Source/Category

 提高C