← 返回 capitalone 的题目列表Sum Calculation with Reset
类型:online_judge
Given a list of integers, iterate through the list to calculate the sum. If the sum < 0, reset the sum to 0; If the sum >= 100, reset the sum to 100. Return the final sum.
Example
Input
2
3
4