#SCCCIE000011. Phép thuật và sinh lực (Health M Death)
Phép thuật và sinh lực (Health M Death)
Health M Death
Source: AtCoder
Problem Statement
A spell defeats a monster exactly when its health is a multiple of . The monster has health . Determine whether the spell works.
Input
One line contains and .
Output
Print Yes if is a multiple of ; otherwise print No.
Subtasks
- Subtask 1 (100%):
Examples
Example 1
Input
10 120
Output
Yes
Explanation
For the sample values 10, 120, evaluating the conditions in the statement gives Yes. Therefore the program prints the shown output.
Example 2
Input
10 125
Output
No
Explanation
For the sample values 10, 125, evaluating the conditions in the statement gives No. Therefore the program prints the shown output.