36 56
No
1 #include<cstdio> 2 using namespace std; 3 long long int f(long long int a,long long int b) 4 { 5 return (a%b==0)?b:f(b,a%b); 6 } 7 int main() 8 { 9 long long int a,b; 10 scanf("%lld%lld",&a,&b); 11 if(f(a,b)==1) 12 { 13 printf("Yes"); 14 } 15 else 16 { 17 printf("No"); 18 } 19 return 0; 20 }
Copyright 2018 自为风月马前卒