パナソニックプログラミングコンテスト(AtCoder Beginner Contest 195)
A
Health M Death
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

Takahashi, the magician, is fighting with a monster.

翻译中…

His magic can defeat a monster whose health is a multiple of $M$. It has no effect on a monster whose health is not a multiple of $M$.

翻译中…

Can his magic defeat a monster whose health is $H$?

翻译中…

Constraints

翻译中…
  • $1 \leq M \leq 1000$
  • $1 \leq H \leq 1000$
  • $M$ and $H$ are integers.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

M H

翻译中…

Output

翻译中…

If Takahashi's magic can defeat the monster, print Yes; otherwise, print No.

翻译中…

样例

Input #1
10 120
Output #1
Yes
Takahashi's magic can defeat a monster whose health is a multiple of $10$. $120$ is a multiple of $10$, so his magic can defeat the monster with health $120$.
Input #2
10 125
Output #2
No
$125$ is not a multiple of $10$, so his magic cannot defeat the monster with health $125$.
题目信息
题号
abc195_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。