B. 【深基4.例4】一尺之棰

    Type: RemoteJudge 1000ms 256MiB

【深基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.

题目描述

《庄子》中说到,“一尺之棰,日取其半,万世不竭”。第一天有一根长度为 aa 的木棍,从第二天开始,每天都要将这根木棍锯掉一半(每次除 22,向下取整)。第几天的时候木棍的长度会变为 11

输入格式

输入一个正整数 aa,表示木棍长度。

输出格式

输出一个正整数,表示要第几天的时候木棍长度会变为 11

100
7

提示

数据保证,1a1091 \le a\le 10^9

柳泉基础班5月19日

Not Attended
Status
Done
Rule
IOI
Problem
2
Start at
2025-5-19 16:45
End at
2025-5-20 4:45
Duration
12 hour(s)
Host
Partic.
16