Wrong Answer (Two groups problem ) Mega cook-off contest

Hello,

I searched almost an hour and I coudn’t identify the mistake in my approch for TWO GROUPS problem mega cook-off contest CodeChef: Practical coding for everyone

Can somebody help me please?
My code is simple to read
https://www.codechef.com/viewsolution/26744762
Thanks

Your code fails on 0 4 2

1 Like

Where is mine failing? CodeChef: Practical coding for everyone

Can help me out too? CodeChef: Practical coding for everyone

My logic was

If A==B==0 AND C%2!=0 then [NO]
If A==C==0 AND B%2!=0 then [NO]
If B==C==0 AND A%2!=0 then [NO]

If A==0 && Bx2!=Cx3 then [NO]
If B==0 && A!=Cx3 then [NO]
If C==0 && A!=Bx2 then [NO]

if ((A+B*2+C)%2!=0) then [NO]

For everything else(i.e, all the 'if ’ conditions were evaluated to false) [YES]

Thank you soo much

I really wonder how to get to know my wrong answers I really struggle with that