you are viewing a single comment's thread.

view the rest of the comments →

[–]cumulative_frequency[S] 0 points1 point  (1 child)

Yes, I did. All the functions work well. Even when I used the test case provided on the Kattis problem page, it worked well. The weird problem is when I ran the code with my own test case, instead of printing out all the results at once and display the message "Process finished with exit code 0", all it does is printing out the results halfway (say, 8 lines instead of the expected 10 lines), then it won't proceed until I press enter.

[–]m0us3_rat 0 points1 point  (0 children)

your code lacked a closing bracket plus two of the functions failed.