Why is my answer wrong of the question http://www.spoj.com/problems/STPAR/? Below is the link of my solution: https://ideone.com/1LVzHz Can anybody help me?
"Input ends with number 0. " –> https://ideone.com/jGD5QH
First of all, thank you for quick response but i do not understand what you want to say. Please, clarify.
Your test:
1 5 5 4 3 2 1 0
on https://ideone.com/1LVzHz is wrong! Correctly is:
5 5 4 3 2 1 0
Other test, can be, for example:
5 5 1 2 4 3 5 5 4 3 2 1 10 1 2 10 5 4 3 7 6 8 9 5 4 1 5 3 2 0
thank you. i got it.