Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem D: 存在倍数
Problem D: 存在倍数
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
100
Solved:
54
[
Status
] [
Submit
] [Creator:
]
Description
输入三个整数 a, b, c,判断 a 和 b 是否存在至少一个数是 c 的倍数。
Input
一行,入三个整数 a, b, c,以空格分隔(1 ≤ a, b, c ≤ 1000)。
Output
如果 a 和 b 中存在 c 的倍数,输出一行 YES;否则,输出一行 NO。
Sample Input
Copy
3 6 2
Sample Output
Copy
YES