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 listDec 15, 2023 14:10matsuoka-601matsuoka-601Score: 6,928Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2023 14:106,79979,303,63255,425,0001,007,0002,412,544
2Dec 15, 2023 14:106,81381,009,09155,543,0001,009,0002,523,136
3Dec 15, 2023 14:106,82087,939,85355,599,0001,010,0002,400,256
4Dec 15, 2023 14:106,82687,037,15255,648,0001,011,0002,514,944
5Dec 15, 2023 14:106,83187,745,77555,682,0001,012,0002,400,256
6Dec 15, 2023 14:106,84685,948,43054,830,0001,993,0002,400,256
7Dec 15, 2023 14:106,90481,952,43456,299,0001,005,0002,523,136
8Dec 15, 2023 14:106,92882,983,12156,491,0001,008,0002,404,352
9Dec 15, 2023 14:106,966119,719,24457,818,40202,277,376
10Dec 15, 2023 14:126,982118,666,70557,951,38102,285,568
11Dec 15, 2023 14:106,984113,550,42857,965,17002,285,568
12Dec 15, 2023 14:126,994127,428,91658,051,54202,289,664
13Dec 15, 2023 14:107,02179,800,09156,267,0002,009,0002,523,136
14Dec 15, 2023 14:127,054120,057,91858,550,08102,277,376
15Dec 15, 2023 14:107,383122,933,18361,276,67402,285,568