I was attempting this question I found out , all we have to use GCD for this question compare whether 1 or not ,if the gcd of a and b is 1 then print “no” otherwise print “yes”.
my code as follows:
ll a, b;
cin >> a >> b;
ll sum = __gcd(a, b);
cout << sum << endl;
if(sum==1)
cout<<"no"<<endl ;
else
cout<<"yes"<<endl;
when i submitted this code my first TC was correct but other three went wrong help me out ,if you can, please give me other test cases ,i went through other test cases but not able to find out my mistake
my submission link : CodeChef: Practical coding for everyone