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 00:03Matt 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 00:0700000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
2May 28, 2024 00:2300000Error: expected "53693201915817637 ", got "53693327989393372 "
3May 28, 2024 00:2200000Error: expected "53690539069170540 ", got "53690556845618475 "
4May 28, 2024 00:2100000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
5May 28, 2024 00:2000000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
6May 28, 2024 00:1900000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
7May 28, 2024 00:1800000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
8May 28, 2024 00:1700000Error: expected "53692213546476067 ", got "53692219950311864 "
9May 28, 2024 00:1600000Error: expected "53681714847113781 ", got "53681715754891583 "
10May 28, 2024 00:1500000Error: expected "53691782471360403 ", got "53691908544936138 "
11May 28, 2024 00:1400000Error: expected "53685093132404221 ", got "53685160747676915 "
12May 28, 2024 00:1200000Error: Exit with code 1: Segmentation fault at address: 1082163328stderr
13May 28, 2024 00:1100000Error: expected "53689485201563357 ", got "53689538648667406 "
14May 28, 2024 00:0800000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
15May 28, 2024 00:0600000Error: expected "53689177735302780 ", got "53689241970423545 "
16May 28, 2024 00:0500000Error: expected "53680903944204949 ", got "53680921942899173 "
17May 28, 2024 00:0400000Error: expected "53691034705513790 ", got "53691055035910260 "
18May 28, 2024 00:0300000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
19May 28, 2024 00:096,175113,887,01051,250,80602,207,744
20May 28, 2024 00:136,180115,335,14951,294,46202,195,456
21May 28, 2024 00:246,226121,838,56151,674,83402,195,456
22May 28, 2024 00:096,235133,752,51451,749,46502,191,360
23May 28, 2024 00:136,279119,120,94552,117,89302,203,648
24May 28, 2024 00:136,313119,254,16652,398,77902,195,456
25May 28, 2024 00:246,337119,738,59552,596,42902,199,552
26May 28, 2024 00:096,341129,444,81052,628,44802,215,936
27May 28, 2024 00:246,391124,336,36053,044,87902,453,504