Getting WA Don't Know Why..Please Help

why my code is giving WA. and It is passing all the test cases according to me…

My solution Link…
https://www.codechef.com/viewsolution/47061297

Check this -
1
2 3 6
1 6
1 4
Your code gives YES but ans is NO. It surely took time to look this detail :slight_smile:

1 Like

Thank you so much Bro…
I completely forgot about this case…and I was just checking again and again…(Now Feeling Happy)…Just Now I submitted…(and Got AC)
Thanks again

1 Like