【深基7.习8】猴子吃桃
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.
题目描述
一只小猴买了若干个桃子。第一天他刚好吃了这些桃子的一半,又贪嘴多吃了一个;接下来的每一天它都会吃剩余的桃子的一半外加一个。第 天早上起来一看,只剩下 个桃子了。请问小猴买了几个桃子?
输入格式
输入一个正整数 ,表示天数。
输出格式
输出小猴买了多少个桃子。
4
22
提示
数据保证,。
基础班暑假集训
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 23
- Start at
- 2025-7-29 23:00
- End at
- 2025-8-21 21:00
- Duration
- 550 hour(s)
- Host
- Partic.
- 11