#P292. 练47.4 小明吃苹果
练47.4 小明吃苹果
Description
Xiaoming has apples at home. Before going to bed each day, she can eat to apples. Xiaoming also has an older sister named May, who eats apple each day after Xiaoming goes to sleep (to be considerate of her younger sister). If there are no apples left, May won't eat any. How many different ways are there to eat the apples?
Input Format
A single integer ().
Output Format
A single integer representing the total number of possible ways to eat the apples.
Sample
54
Related
In following homework: