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 listJan 1, 2023 15:42Jack FrigaardJack FrigaardScore: 5,007Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 15:424,980127,520,63541,335,81102,199,552
2Jan 1, 2023 15:424,98966,563,98339,388,0002,019,0002,514,944
3Jan 1, 2023 15:424,995102,329,22541,458,82902,211,840
4Jan 1, 2023 15:424,99561,665,34240,444,0001,011,0002,457,600
5Jan 1, 2023 15:425,000116,306,82241,500,13702,211,840
6Jan 1, 2023 15:425,00065,064,04939,480,0002,024,0002,514,944
7Jan 1, 2023 15:425,00463,609,06441,535,00002,514,944
8Jan 1, 2023 15:425,00777,535,34239,534,0002,027,0002,301,952
9Jan 1, 2023 15:425,04566,332,82939,882,0001,994,0002,449,408
10Jan 1, 2023 15:425,05268,688,95139,933,0001,996,0002,453,504
11Jan 1, 2023 15:425,06061,673,46839,001,0003,000,0002,514,944
12Jan 1, 2023 15:425,06874,372,94241,066,0001,001,0002,453,504
13Jan 1, 2023 15:425,08070,171,62940,159,0002,007,0002,510,848
14Jan 1, 2023 15:425,12465,377,93640,505,0002,025,0002,437,120
15Jan 1, 2023 15:425,13267,754,88841,581,0001,014,0002,510,848