https://www.codechef.com/submit/LECANDY

https://www.codechef.com/submit/LECANDY
My code is running with the customed testcases but it’s displaying wrong answer after submitting…I don’t know How do I deal with corner case .please check my code.

I don’t think there are corner cases in this problem, could you provide your code/link to the submission?

1 Like

I have attached the code link

Should I try this sum using JAVA / python??

Go back to your first submission and add a new line after printing “Yes” or “No”. It’s a silly mistake you made. :slight_smile:

There can be mutliple testcases, so essentially your output will look like:

YesYesNoYes

Instead of

Yes
Yes
No
Yes

1 Like
1 Like

I wrote it in JAVA nd it could run for the only reason I used println …I got it should have used endl in cpp …thankyou dude

1 Like

Yes got it now .Thankyou

1 Like