Hackerrank input format on findPoint problem
My code below works if I compile it on online perl compiler.
But it does not work on Hackerrank.
I am pretty sure it is related with the input/output format, which I do not know how to fix.
In my code, I assume the input is just a list of integer.
I have read about other problems related with stdin/out in this forum, but since i am a beginner, I cannot understand the discussion.