Positive Integers

1.8

4 votes
Ad-Hoc
Problem

Your given a sequence of N integers and your task is to find how many positive integers are present in sequence.

Input
First line contains T denoting number of testcases. Each testcase consists of one integer denoting the size of sequence.
The next line contains N space seperated integers.

Output
For each testcase, print the required answer in one line.

Constraints
1 ≤ T ≤ 10
1 ≤ N ≤ 105

Sample Input
2
4
1 -2 -88 4
6
9 155 -988 15 25 -33
Sample Output
2
4
Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?