#SCCCIE000010. Kiểm tra chia hết cho k (Divisibility by k)
Kiểm tra chia hết cho k (Divisibility by k)
Divisibility by k
Source: Phước Hưng OJ
Problem Statement
Given integers and nonzero , determine whether is divisible by .
Input
One line contains and .
Output
Print YES if nmod k=0; otherwise print NO.
Subtasks
- Subtask 1 (100%): ; ;
Examples
Example 1
Input
18 6
Output
YES
Explanation
For the sample values 18, 6, evaluating the conditions in the statement gives YES. Therefore the program prints the shown output.
Example 2
Input
20 6
Output
NO
Explanation
For the sample values 20, 6, evaluating the conditions in the statement gives NO. Therefore the program prints the shown output.