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.
t – number of test cases [t < 1000]
On each of next t lines given a integer N [-1000 <= N <= 1000]
One integer equals to sum of all positive integers.
Score equals to size of source code of your program except symbols with ASCII code <= 32.
Input: 4 5 -5 6 -1 Output: 11
@Alessandro Amici Wow, very clever! I would never have thought that the score could get this low. Well soon after getting 20, i managed to lower it to 16 (24 in py3). I believe you're close, but still missing something ;)
8 years after my last best score with python 2 and 3 (28 and 31) I had a new idea: I'm in awe as I managed to do 20 with python 2 and 28 with python 3!
111 in python3
113 in python for me
134 c++ what does this mean?
why is number showing instead of right or wrong answer? mine was 119
229 in C++14
111 in C++
181 in Java! by limiting all the variable names and even the class name to 1 alphabet... I think that's the highest one can get with java, since the main void is so long (public static void main(String args))
153 in c++
|Added by:||Roman Sol|
|Cluster:||Cube (Intel G860)|
|Languages:||All except: ERL JS-RHINO NODEJS PERL6 VB.NET WHITESPACE|
|Resource:||ZCon & RSDN|