#fish8. 小鱼会有危险吗

小鱼会有危险吗

P1426 Will the Little Fish Be in Danger?

题目描述

Once, a little fish started swimming to the right along a straight line from point AA. In the first second, it can swim 77 meters. Starting from the second second, the distance it swims each second is only 98%98\% of the distance swum in the previous second. An extremely evil hunter has installed a concealed detector at a point ss meters to the right of AA. The detector’s detection range extends xx meters to both the left and right. Once the little fish enters the detector’s range, the detector will transmit a signal to the hunter at the end of that second. One second later, the hunter will conduct a capture within the detector’s range. If the little fish is still within this range at that time, it will be in danger. In other words, once the little fish enters the detector’s range, it is still safe if it can swim out of the detector’s range within the next 11 second. Now, given ss and xx, please determine whether the little fish will be in danger. Output y if it is in danger, and n if it is not.

输入格式

A single line containing two real numbers separated by a space, representing ss and xx.

输出格式

Output a single line containing y or n to indicate whether the little fish will be in danger.

输入输出样例 #1

输入 #1

14 1

输出 #1

n

说明/提示

Constraints

For 100%100\% of the testdata, it is guaranteed that 1s,x1001 \leq s, x \leq 100, with at most 66 digits after the decimal point.

Translated by ChatGPT 5