cf/mirror

Mike and gcd problem

CF
798C1700· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2
1 1
Output
YES
1
Sample 2of 3
Input
3
6 2 4
Output
YES
0
Sample 3of 3
Input
2
1 3
Output
YES
1
798C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)