[例4.4]一尺之棰
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.
题目描述
《庄子》中说到,“一尺之棰,日取其半,万世不竭”。第一天有一根长度为 的木棍,从第二天开始,每天都要将这根木棍锯掉一半(每次除 ,向下取整)。第几天的时候木棍的长度会变为 ?
输入格式
输入一个正整数 ,表示木棍长度。
输出格式
输出一个正整数,表示要第几天的时候木棍长度会变为 。
样例 #1
样例输入 #1
100
样例输出 #1
7
提示
数据保证,。
龙凤苑B班5.16
- Status
- Done
- Rule
- IOI
- Problem
- 3
- Start at
- 2024-5-16 16:00
- End at
- 2024-5-20 16:00
- Duration
- 96 hour(s)
- Host
- Partic.
- 12