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-01-04 10:30:58
88 in C

Last edit: 2018-01-18 06:08:36
2017-12-31 11:23:10
96 in c...
lesser d code=>less score=> more chance to get point :)


Last edit: 2018-01-03 05:11:50
2017-12-30 06:59:04
88 in c

Last edit: 2018-01-18 06:11:38
2017-10-16 16:20:28
62 in python!!
2017-09-25 18:35:55
I'm quite sure that in some test cases there are more than t+1 numbers. It should be repaired or at least mentioned.
2017-09-23 21:12:31
67 python
2017-09-14 20:36:13
98 XD
c++

Last edit: 2017-09-14 20:40:09
2017-09-07 10:32:46
140 in C.
2017-07-03 05:49:03
score mean ??
2017-06-29 20:40:58
103 in cpp... can we decrease this?
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.