AtCoder Beginner Contest 188
翻译中…
Problem Statement
翻译中…
A basketball game is being played, and the score is now $X$-$Y$. Here, it is guaranteed that $X \neq Y$.
Can the team which is behind turn the tables with a successful three-point goal?
In other words, if the team which is behind earns three points, will its score become strictly greater than that of the other team?
翻译中…
Constraints
翻译中…
$0 \le X \le 100$$0 \le Y \le 100$$X \neq Y$$X$and$Y$are integers.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
X Y
翻译中…
Output
翻译中…
If the team which is behind can turn the tables with a successful three-point goal, print Yes; otherwise, print No.
翻译中…
样例
Input #1
3 5
Output #1
Yes
The team with $3$ points is behind.
After a successful $3$-point goal, it will have $6$ points, which is greater than that of the other team - $5$.
Thus, we should print `Yes`.
Input #2
16 2
Output #2
No
The gap is too much. The team which is behind cannot overtake the other by getting $3$ points.
Input #3
12 15
Output #3
No
A $3$-point goal will tie the score but not turn the tables.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。