Mike and gcd problem
798C1700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
21 1
Output
YES1
Sample 2of 3
Input
36 2 4
Output
YES0
Sample 3of 3
Input
21 3
Output
YES1
58%
798C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
21 1
YES1
36 2 4
YES0
21 3
YES1