Piece of cake wrong answer

http://www.codechef.com/viewsolution/6022488

I don’t know why codechef is giving wrong answer when all my cases are working.
Is there any corner case which I might be missing ?

YES should be in caps. Here is your accepted code.

1 Like

Print “YES” instead of “Yes” :slight_smile:

Oh shit. Costed me 2 wrong answers.
Thanks man

Welcome man !!! Always try to copy any text that needs to be printed :wink:

https://www.codechef.com/viewsolution/10571262

Could some one please help me out regarding this.Why isn’t my solution not accepted even though its correct for all the test cases I have knowledge of?!

//