Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listMay 27, 2024 15:04GraceGraceScore: 7,343Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 15:047,10788,975,33456,988,0001,999,0002,285,568
2May 27, 2024 15:047,19185,474,87758,673,0001,011,0002,285,568
3May 27, 2024 15:047,25681,498,72858,216,0002,007,0002,265,088
4May 27, 2024 15:047,27982,224,74059,406,0001,006,0002,285,568
5May 27, 2024 15:047,296121,364,75360,557,17402,174,976
6May 27, 2024 15:047,30387,009,73459,606,0001,010,0002,371,584
7May 27, 2024 15:047,309119,445,98560,668,69802,297,856
8May 27, 2024 15:047,32388,329,60858,788,0001,992,0002,265,088
9May 27, 2024 15:047,33784,957,39658,903,0001,996,0002,285,568
10May 27, 2024 15:047,34390,428,58658,950,0001,998,0002,285,568
11May 27, 2024 15:057,407122,357,78661,476,63602,174,976
12May 27, 2024 15:048,06688,710,50164,948,0001,998,0002,273,280
13May 27, 2024 15:048,12091,580,74266,390,0001,005,0002,285,568
14May 27, 2024 15:048,14499,122,61666,589,0001,008,0002,285,568
15May 27, 2024 15:048,22391,996,03066,246,0002,007,0002,285,568
16May 27, 2024 15:058,252136,054,88468,495,59502,293,760
17May 27, 2024 15:048,252131,830,65668,492,79002,301,952
18May 27, 2024 15:058,256127,435,77968,527,80302,301,952