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 17:02Jack FrigaardJack FrigaardScore: 5,163Success
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 17:025,11267,275,71540,409,0002,020,0002,260,992
2Dec 31, 2022 17:025,11369,481,83140,415,0002,020,0002,449,408
3Dec 31, 2022 17:025,12178,600,33541,494,0001,012,0002,260,992
4Dec 31, 2022 17:025,12967,390,57840,546,0002,027,0002,260,992
5Dec 31, 2022 17:025,13071,462,70941,563,0001,013,0002,457,600
6Dec 31, 2022 17:025,13670,980,57841,611,0001,014,0002,285,568
7Dec 31, 2022 17:025,13777,503,45740,603,0002,030,0002,260,992
8Dec 31, 2022 17:025,16367,798,35439,866,0002,989,0002,523,136
9Dec 31, 2022 17:025,17069,757,17839,918,0002,993,0002,260,992
10Dec 31, 2022 17:025,20270,188,73740,166,0003,012,0002,449,408
11Dec 31, 2022 17:025,20566,205,10140,189,0003,014,0002,449,408
12Dec 31, 2022 17:025,21464,663,72740,256,0003,019,0002,260,992
13Dec 31, 2022 17:025,305120,748,20644,027,51102,211,840
14Dec 31, 2022 17:025,325108,181,65344,193,93402,207,744
15Dec 31, 2022 17:025,335104,983,46744,279,62202,211,840