MaxDiff wrong answer

Hi. I am getting wrong answer for the submission 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…:slight_smile:

1 Like

Ah. Thanks. Got an AC :slight_smile:

glad could help…:slight_smile: