result is a variable containing the maximum-streak from each testcase. Ofcourse I have it initialized properly.
In the problem description, we can found that there will be NO 0 (zero) bet in each input-set, only negative or positive value will exists. Do we agree with this? If so, I think it's clear that it is impossible to get 0 (zero) maximum-streak from that condition.
My WA code went wrong because there're exists input-set such maximum-streak is 0. The only explanation I could think is there're 0 (zero) bets.
I have checked the judge-input, and I found 0 bet there.
