蜗牛爬树
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.
说明
有一棵葡萄树高分米,一只蜗牛从底部向上爬,每分钟爬分米,但每爬一分钟后都要休息一分钟,休息期间又要滑下分米。该蜗牛需要多少分钟才能爬到树顶?
输入格式
输入一个整数n()
输出格式
输出一个整数,表示蜗牛需要多少分钟才能爬到树顶。
样例
17
15
一起比赛欢乐多
- Status
- Done
- Rule
- Ledo
- Problem
- 22
- Start at
- 2024-7-29 19:00
- End at
- 2024-7-29 21:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 0