#A. 猴子吃桃

    Type: RemoteJudge 1000ms 256MiB

猴子吃桃

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

一只小猴买了若干个桃子。第一天他刚好吃了这些桃子的一半,又贪嘴多吃了一个;接下来的每一天它都会吃剩余的桃子的一半外加一个。第 nn 天早上起来一看,只剩下 11 个桃子了。请问小猴买了几个桃子?

输入格式

输入一个正整数 nn,表示天数。

输出格式

输出小猴买了多少个桃子。

4
22

提示

数据保证,1n201\le n\le20

黑猫白银级公开赛01

Not Attended
Status
Done
Rule
OI
Problem
4
Start at
2024-2-16 15:15
End at
2024-2-24 23:15
Duration
200 hour(s)
Host
Partic.
18