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 31, 2022 16:41Jack FrigaardJack FrigaardScore: 5,351Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 16:415,31870,607,93441,134,0003,009,0002,523,136
2Dec 31, 2022 16:415,32465,197,33643,189,0001,004,0002,523,136
3Dec 31, 2022 16:415,32874,165,38342,214,0002,010,0002,461,696
4Dec 31, 2022 16:415,33172,368,40741,234,0003,017,0002,519,040
5Dec 31, 2022 16:415,34567,742,13642,348,0002,016,0002,514,944
6Dec 31, 2022 16:415,34775,024,53542,367,0002,017,0002,461,696
7Dec 31, 2022 16:415,349106,517,99744,400,22602,211,840
8Dec 31, 2022 16:415,35173,373,97343,404,0001,009,0002,457,600
9Dec 31, 2022 16:415,35766,941,36742,439,0002,020,0002,457,600
10Dec 31, 2022 16:415,367117,416,60444,545,50502,203,648
11Dec 31, 2022 16:415,37470,010,93042,576,0002,027,0002,453,504
12Dec 31, 2022 16:415,386106,437,23444,701,22802,207,744
13Dec 31, 2022 16:415,41867,277,47741,970,0002,997,0002,523,136
14Dec 31, 2022 16:415,44274,333,29442,161,0003,011,0002,523,136
15Dec 31, 2022 16:415,45068,456,06243,223,0002,010,0002,457,600