#P5720. 【深基4.例4】一尺之棰
【深基4.例4】一尺之棰
Problem Description
In Zhuangzi, it is said: “A one-chi stick, take half of it each day, and it will never be exhausted.” On the first day, there is a wooden stick of length . Starting from the second day, each day you saw off half of the stick (divide by each time, rounding down). On which day will the length of the stick become ?
Input Format
Input a positive integer , representing the length of the stick.
Output Format
Output a positive integer, representing on which day the length of the stick will become .
100
7
Hint
Constraints: .
Translated by ChatGPT 5