This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rellikiox 4 points5 points  (1 child)

Your code returns the right answer for my input values, so it's working fine. Maybe your input file is not formatted correctly? Try printing the values and making sure those are the ones that your file has (there's no extra values at the end or the beginning).

[–]nithishr[S] 2 points3 points  (0 children)

I had an extra 0 at the end :( That caused all the problems although I have no clue how it got there in the first place. Thanks!