• [deleted]
    + 1 comment

    I've had this problem on several challenges now: for some testcases my scanner doesn't seem to want to read the last line of the given input. I recognized this problem when trying out testcase 5, which was causing some unknown runtime error, and realized the last line of the input wasn't recognized until I pressed the "enter" key, after which it computed the result normally. Any idea what might cause this problem and how to solve it?