#P1423. 小玉在游泳

小玉在游泳

Description

{{Xiaoyu is happily swimming, but she soon sadly finds that she lacks strength and swimming is tiring. It is known that Xiaoyu can swim 22 meters in the first step, but as she becomes more and more tired and weaker, each subsequent step can only cover 98%98\% of the distance of the previous step. Now Xiaoyu wants to know, if she wants to swim to a place ss meters away, how many steps does she need? Please write a program to solve this problem.}}

Input Format

{{Input a real number ss (unit: meters), representing the target distance to swim.}}

Output Format

{{Output an integer, representing the total number of steps Xiaoyu needs.}}

4.3
3

Hint

{{It is guaranteed that 0s<1000 \leq s < 100, and ss has at most one digit after the decimal point.}}

Translated by ChatGPT 5