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 31, 2024 03:38GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 03:3800000Error: expected "53690764431914066 ", got "53690764425360466 "
2May 31, 2024 03:3800000Error: expected "53682393905655771 ", got "53682393899102171 "
3May 31, 2024 03:3900000Error: expected "53682947584639325 ", got "53682947584573789 "
4May 31, 2024 03:3900000Error: expected "53682094861089698 ", got "53682094861024162 "
5May 31, 2024 03:395,962110,636,18149,485,94702,273,280
6May 31, 2024 03:395,964108,114,69149,504,78502,281,472
7May 31, 2024 03:385,966120,134,92149,515,08202,289,664
8May 31, 2024 03:395,969121,623,04749,542,93302,281,472
9May 31, 2024 03:395,981106,732,46349,640,25802,289,664
10May 31, 2024 03:385,986136,347,99949,683,70102,285,568
11May 31, 2024 03:395,988109,002,22549,703,75802,281,472
12May 31, 2024 03:395,990112,652,34649,714,17902,285,568
13May 31, 2024 03:395,995109,992,62749,757,56202,281,472
14May 31, 2024 03:386,000129,865,66249,801,85902,281,472
15May 31, 2024 03:396,012109,135,67949,901,45602,281,472
16May 31, 2024 03:396,134121,960,16650,909,39902,277,376