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 16:25Matt 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 16:3100000Error: expected "53687251284285159 ", got "53687263174579905 "
2May 27, 2024 16:4400000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
3May 27, 2024 16:4300000Error: expected "53688318117461480 ", got "53688320976573687 "
4May 27, 2024 16:4200000Error: expected "53684406569612081 ", got "53684454044508865 "
5May 27, 2024 16:4100000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
6May 27, 2024 16:4000000Error: expected "53683094127276756 ", got "53683095035054558 "
7May 27, 2024 16:3800000Error: expected "53689657821265675 ", got "53689693143336342 "
8May 27, 2024 16:3700000Error: expected "53690683517046485 ", got "53690711993676002 "
9May 27, 2024 16:3600000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
10May 27, 2024 16:3500000Error: expected "53692375907029882 ", got "53692424603669032 "
11May 27, 2024 16:3400000Error: expected "53691953029010739 ", got "53691964919305485 "
12May 27, 2024 16:3300000Error: expected "53689302344337224 ", got "53689366579457989 "
13May 27, 2024 16:3200000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
14May 27, 2024 16:3000000Error: expected "53691937142392194 ", got "53692063215967929 "
15May 27, 2024 16:2800000Error: expected "53690997206557514 ", got "53691029654905483 "
16May 27, 2024 16:2700000Error: expected "53686031402322706 ", got "53686047517125948 "
17May 27, 2024 16:2600000Error: expected "53684449165434103 ", got "53684507805925474 "
18May 27, 2024 16:396,162119,072,55251,143,98902,199,552
19May 27, 2024 16:466,190116,219,62651,373,22002,187,264
20May 27, 2024 16:466,219113,983,98051,621,35002,220,032
21May 27, 2024 16:396,221118,762,60951,630,18302,215,936
22May 27, 2024 16:256,230108,680,97951,707,26102,215,936
23May 27, 2024 16:466,244129,799,99951,825,49102,191,360
24May 27, 2024 16:256,338109,160,77452,603,85302,207,744
25May 27, 2024 16:256,377125,935,10052,929,08302,207,744
26May 27, 2024 16:396,406122,760,88653,169,56202,220,032