#abc208a. A - Rolling Dice
A - Rolling Dice
Score : points
问题陈述
是否可能通过掷一个有六个面(分别为 )的骰子 次,得到和为 的结果?
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Is it possible to get a sum of when throwing a die with six faces times?
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
If it is possible to get a sum of , print Yes
; otherwise, print No
.
Sample Input 1
2 11
Sample Output 1
Yes
There are two ways to get a sum of when throwing a -faced die twice:
- getting in the first throw and in the second throw;
- getting in the first throw and in the second throw.
Sample Input 2
2 13
Sample Output 2
No
There is no way to get a sum of when throwing a -faced die twice.
Sample Input 3
100 600
Sample Output 3
Yes
update @ 2024/3/10 09:21:22