代码纯属原创,如有雷同,纯属巧合!
#include <stdio.h>
long long int gcd(long long int a,long long int b)
{
return (b==0?a:gcd(b,a%b));
}
int main()
{
long long int a,b,c;
scanf("%lld %lld",&a,&b);
c=gcd(a,b);
b=b/c;
if(c%b!=0)
printf("No");
else
printf("Yes");
return 0;
}