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 30, 2022 17:50Jack FrigaardJack FrigaardScore: 5,431Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 17:505,40568,584,60643,844,0001,019,0002,502,656
2Dec 30, 2022 17:505,41168,071,34643,914,000998,0002,260,992
3Dec 30, 2022 17:505,41274,849,34642,926,0001,996,0002,260,992
4Dec 30, 2022 17:505,41570,865,18342,946,0001,997,0002,260,992
5Dec 30, 2022 17:505,41673,625,38143,953,000998,0002,260,992
6Dec 30, 2022 17:505,41772,647,42442,965,0001,998,0002,260,992
7Dec 30, 2022 17:505,41970,240,67243,980,000999,0002,260,992
8Dec 30, 2022 17:505,43170,498,56944,078,0001,001,0002,494,464
9Dec 30, 2022 17:505,43668,559,65743,117,0002,005,0002,502,656
10Dec 30, 2022 17:505,46672,321,62045,370,00002,494,464
11Dec 30, 2022 17:505,48572,235,81344,511,0001,011,0002,498,560
12Dec 30, 2022 17:505,49578,030,67944,597,0001,013,0002,260,992
13Dec 30, 2022 17:505,574113,921,89746,266,94002,252,800
14Dec 30, 2022 17:505,592104,219,33246,410,50702,252,800
15Dec 30, 2022 17:505,642130,269,19446,831,34002,252,800