You are viewing a single comment's thread. Return to all comments →
Yes, no newline between the inputs. Either the description or the test case input should be corrected.
Indeed. In testcases 1-5 the numbers are separated by a space.
I'm not changing my code, since it's correct for the problem definition. The mistake is in the testcases, not in my code.