#E. A - Rolling Dice

    传统题 1000ms 256MiB

A - Rolling Dice

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

A - Rolling Dice

Score : $100$ points

Problem Statement

Is it possible to get a sum of $B$ when throwing a die with six faces $1,2,\ldots,6$ $A$ times?

Constraints

  • $1 \leq A \leq 100$
  • $1 \leq B \leq 1000$
  • $A$ and $B$ are integers.

Input

Input is given from Standard Input in the following format:

AA BB

Output

If it is possible to get a sum of $B$, print Yes; otherwise, print No.


2 11
Yes

There are two ways to get a sum of $11$ when throwing a $6$-faced die twice:

  • getting $6$ in the first throw and $5$ in the second throw;
  • getting $5$ in the first throw and $6$ in the second throw.

2 13
No

There is no way to get a sum of $13$ when throwing a $6$-faced die twice.


100 600
Yes

2025寒假ATC码力训练营第九次练习

未参加
状态
已结束
规则
IOI
题目
6
开始于
2025-2-1 13:00
结束于
2025-2-1 14:30
持续时间
1.5 小时
主持人
参赛人数
5