Size Contest (SPOJ Challenge problem 378)

Given the set of integers, find the sum of all positive integers in it. Solutions can be sent in any language supported by SPOJ except Whitespace.

Input

t – number of test cases [t < 1000]
On each of next t lines given a integer N [-1000 <= N <= 1000]

Output

One integer equals to sum of all positive integers.

Score

Score equals to size of source code of your program except symbols with ASCII code <= 32.

Example

C Program :

 

About Gaurav Vichare

Hi , I am Gaurav : author of this blog , future engineer and a Photoshop lover . You can connect with me on Facebook , cirlce me on Google or follow on Twitter

Speak Your Mind

*


four − = 0

CommentLuv badge