You are viewing a single comment's thread. Return to all comments →
Input format and sample input are different. The question is ambiguous.
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.