Health M Death

AtCoder
IDabc195_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
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$.
API Response (JSON)
{
  "problem": {
    "name": "Health M Death",
    "description": {
      "content": "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 ma",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc195_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Takahashi, the magician, is fighting with a monster.\nHis 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$.\nCan his ma...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments