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 22:17Matt 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 27, 2024 22:2300000Error: expected "53685223122757023 ", got "53685224030534825 "
2May 27, 2024 22:3700000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
3May 27, 2024 22:3600000Error: expected "53687627589637581 ", got "53687630448749788 "
4May 27, 2024 22:3500000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
5May 27, 2024 22:3400000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
6May 27, 2024 22:3300000Error: expected "53689232284694555 ", got "53689240164599355 "
7May 27, 2024 22:3200000Error: expected "53683656047141077 ", got "53683725421369190 "
8May 27, 2024 22:3000000Error: expected "53684383151427846 ", got "53684441791919217 "
9May 27, 2024 22:2900000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
10May 27, 2024 22:2800000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
11May 27, 2024 22:2700000Error: expected "53683571797719104 ", got "53683618234774653 "
12May 27, 2024 22:2600000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
13May 27, 2024 22:2500000Error: expected "53692477719000491 ", got "53692483330121829 "
14May 27, 2024 22:2400000Error: expected "53690632777275229 ", got "53690679232238658 "
15May 27, 2024 22:2200000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
16May 27, 2024 22:2100000Error: expected "53689921778884281 ", got "53689941543828908 "
17May 27, 2024 22:2000000Error: expected "53683079623436516 ", got "53683093441993336 "
18May 27, 2024 22:1900000Error: expected "53689653573311256 ", got "53689665463606002 "
19May 27, 2024 22:386,189131,024,20251,369,73502,179,072
20May 27, 2024 22:186,230127,870,49751,711,02102,465,792
21May 27, 2024 22:176,279118,573,81552,114,96302,215,936
22May 27, 2024 22:386,316123,416,21952,426,85802,183,168
23May 27, 2024 22:176,320120,524,81752,454,70802,187,264
24May 27, 2024 22:186,338123,113,72652,607,67602,199,552
25May 27, 2024 22:386,383133,391,51752,977,15502,199,552
26May 27, 2024 22:186,383118,382,92952,980,65902,199,552
27May 27, 2024 22:176,390112,262,25753,036,88602,187,264