Submit | All submissions | Best solutions | Back to list |
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
|
||||||||||||||
2016-08-17 03:57:41
108 in c++ Last edit: 2016-08-17 03:57:53 |
||||||||||||||
2016-08-05 19:26:46
Got 102 with C++ , any ideas to shorten the code further? |
||||||||||||||
2016-07-23 11:57:50
134 in c++ |
||||||||||||||
2016-07-04 13:25:24
142 in c |
||||||||||||||
2016-06-28 09:03:51
116 in C |
||||||||||||||
2016-06-22 20:12:38
50 in python 1 liner :P |
||||||||||||||
2016-06-22 13:22:10
172 c++!! |
||||||||||||||
2016-06-12 18:39:33
172 in c what does it mean? |
||||||||||||||
2016-05-26 10:44:39 KD
422 in c :P |
||||||||||||||
2016-05-24 21:05:06
am getting wrong answer . anything i might be missing ? |