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
2017-04-22 11:56:54
i am getting 140 in result ...what does that mean
2017-04-02 20:49:39
172 in c++
2017-03-20 16:15:57
135 in C++!
what does this mean?
2017-03-05 16:23:37
It's definitely less = better.
I submitted two codes, one with and one without extra variable: First got 153, second got 149.
2017-03-05 16:15:00
153 in C
2017-02-22 22:53:08


Last edit: 2017-02-22 22:53:31
2017-02-22 00:02:11
108 c++ :)


Last edit: 2017-02-22 22:53:54
2017-02-07 12:49:27
122 in c
2017-01-25 14:49:54
139 in C :/

Last edit: 2017-01-25 14:50:17
2017-01-21 15:15:37
98 in c++
EDIT: 24 in Perl :)
EDIT2: I see some people here done it with a score of 6. How the hell they're able to do that?

Last edit: 2017-02-20 09:15:56
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.