Hi. I am getting wrong answer for the submission http://www.codechef.com/viewsolution/2541168. Can anyone help me on this? Thank you for your time.
ur logic is perfectly fine…the only mistake u r doing is not printing a new line after every answer…just put an endl and u will get an AC…hope this will help…
1 Like
Ah. Thanks. Got an AC
glad could help…