Sum

3

2 votes
Easy
Problem

Given an array of integers, compute the sum of all positive integers.

Input: The first line is t, the number of test cases. For each test case, the first input is n, the size of array, followed by n integers.

Output: For every test case 1 line, the sum of positive integers.

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?