Need Help Giving wrong when submitted though code and output is right

This post was flagged by the community and is temporarily hidden.

We can help only after competition is over. Sorry.

1 Like

ouu np :slight_smile:
but do pls clear my doubt after the competition
thanx for the reply :grinning_face_with_smiling_eyes: :grinning_face_with_smiling_eyes: :innocent: :innocent:

1 Like

Hey. The Editorial for the problem is here. You can check it out:
EQUALCOIN - Editorial - editorial - CodeChef Discuss

There had to be five cases. Below is my solution


So many cases are not required.

if( x%2 | ( !x & y%2 ) ) cout<<"NO"<<"\n";
else cout<<"YES"<<"\n";

I think this should suffice just 3 conditions.