SIZECON - Size Contest

no tags 

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

Input:
4
5
-5
6
-1

Output:
11

hide comments
kosta_1: 2015-11-02 15:31:53

got 170 in c++
:D

Mansi Jain: 2015-10-22 18:39:00

123 in C :)

ranjeetkumar: 2015-10-10 11:58:40

got 58 with python.....

alexbandeira: 2015-09-24 17:43:16

@Akshay Aradhya:
no need!
make sure your variable is assigning value 0; int sum = 0;

gopikasula: 2015-09-22 16:15:54

Last edit: 2015-09-22 16:17:01
sciencepal: 2015-09-15 16:28:13

75 with py 2.7.9

vandot: 2015-07-24 01:19:16

90 in bash :)

vikram bhat: 2015-07-16 12:39:35

@SaiAvinash You must to be kidding , the lower the score the better it is , score is counted based on size of the code , the reason you have got such high code after adding fastio method is due to increase in code size.

Akshay Aradhya: 2015-07-15 12:33:31

Do i really have to give "return 0" for C ?

Joonyoung Lee: 2015-06-22 18:21:40

+so_what it means that the it will not count any ascii control (like newline and eof flag) characters.


Added by:Roman Sol
Date:2005-06-23
Time limit:2s
Source limit:10000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ERL JS-RHINO NODEJS PERL6 VB.NET WHITESPACE
Resource:ZCon & RSDN