Getting wrong answer in Paying up, please help.

Title says it all. Here is the link for my submission.
http://www.codechef.com/viewsolution/6022627

Did you try ‘Yes’ and ‘No’, instead of ‘YES’ and ‘NO’? Case of the output matters.

1 Like

Damn, i didnt noticed that, thanks…it worked…:wink:

1 Like