SP30893 SABBIRGAME - Sabbir and Game
Description
Sabbir is a little boy. he loves to play. One day his friend taskin suggested a new interesting game. there are n levels in the game. one should pass all the levels with a positive life-point. in some level one can increase his life-point by defeating the villain of the game or lose some life-point when one can't defeat the villain. Sabbir knows the points he is going to lose or increase in each level. determine the mnimum life-point sabbir should have initially ( at the starting of the game ) to pass all the levels with a positive life point.
Input Format
input consists of at most 100 test cases.
first line consists of a single integer T ( 1
Output Format
for each test case print an integer in one line , the minimum life-point sabbir will need initially.