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 28, 2024 04:47Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 28, 2024 04:5100000Error: expected "53689994057901282 ", got "53690025938140404 "
2May 28, 2024 05:0400000Error: expected "53681072038738244 ", got "53681113109098127 "
3May 28, 2024 05:0300000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
4May 28, 2024 05:0200000Error: expected "53691195708772876 ", got "53691253655480295 "
5May 28, 2024 05:0100000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
6May 28, 2024 05:0000000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
7May 28, 2024 04:5900000Error: expected "53690601961460203 ", got "53690615825005962 "
8May 28, 2024 04:5800000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
9May 28, 2024 04:5700000Error: expected "53681598751950052 ", got "53681651003167000 "
10May 28, 2024 04:5500000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
11May 28, 2024 04:5400000Error: expected "53684882405995946 ", got "53684934760682246 "
12May 28, 2024 04:5300000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
13May 28, 2024 04:5000000Error: expected "53690250438069814 ", got "53690309078561185 "
14May 28, 2024 04:4900000Error: expected "53688514888211050 ", got "53688550210281717 "
15May 28, 2024 04:4700000Error: expected "53690119308956759 ", got "53690130439337442 "
16May 28, 2024 04:566,172141,500,42251,227,02802,211,840
17May 28, 2024 04:526,179132,328,92151,287,46402,207,744
18May 28, 2024 04:526,233126,895,02251,730,02002,191,360
19May 28, 2024 04:566,287110,629,77452,185,35802,179,072
20May 28, 2024 05:066,337126,307,88852,593,60902,187,264
21May 28, 2024 05:066,353121,244,88852,731,10602,215,936
22May 28, 2024 04:566,353143,025,85152,730,56202,199,552
23May 28, 2024 04:526,375126,386,89552,915,04102,199,552
24May 28, 2024 05:066,396125,727,35953,083,15302,199,552