SIZECON - Size Contest

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

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

hide comments
2018-11-18 14:34:48
i got 132 using c++
2018-10-06 18:33:30
77 what does it mean could anyone expain me plzzz?
2018-09-15 13:14:31
168 in c++
2018-09-01 12:04:16
120 in c++
2018-08-23 22:29:06
127 in C++
2018-08-02 08:22:54
110 in C.:)
2018-03-26 10:04:46
taco, watch out for your inbox as the 8 guys below your 12521st score might just take you up on that offer ;)
2018-03-25 01:46:56
113 lines in C. Just tried to make it safe-ish. I could have hadded clutter but why would I?
If anyone needs help with this feel free to hit me up, I'll try to answer asap.
2018-03-22 20:10:55
1089 in c++
now 108


Last edit: 2018-03-22 20:13:33
2018-01-14 20:59:39
88 in c
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.