why is this giving a WA ?

http://www.codechef.com/viewsolution/6608153
please point out the error…

2 Likes

Hey @sarvagya3943 I tried to debug your code for half and hour or so . When i was about to give up I realized you need to print “Yes” and “No” not “YES” “NO”. change your YES->Yes and NO->No and you will get AC :slight_smile: