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:53Jack FrigaardJack FrigaardScore: 5,182Success
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:535,15564,712,70140,796,0001,990,0002,449,408
2Dec 30, 2022 17:535,16165,788,23139,850,0002,988,0002,449,408
3Dec 30, 2022 17:535,16171,181,31240,843,0001,992,0002,523,136
4Dec 30, 2022 17:535,17169,496,30640,920,0001,996,0002,514,944
5Dec 30, 2022 17:535,17269,448,85439,930,0002,994,0002,523,136
6Dec 30, 2022 17:535,17472,249,38240,948,0001,997,0002,523,136
7Dec 30, 2022 17:535,17968,049,12339,984,0002,998,0002,453,504
8Dec 30, 2022 17:535,18263,015,82440,007,0003,000,0002,523,136
9Dec 30, 2022 17:535,18463,979,15542,029,0001,000,0002,523,136
10Dec 30, 2022 17:535,203112,405,85843,186,60802,199,552
11Dec 30, 2022 17:535,231111,335,27243,416,84702,211,840
12Dec 30, 2022 17:535,233113,421,20243,431,35802,203,648
13Dec 30, 2022 17:535,24468,181,47342,517,0001,012,0002,441,216
14Dec 30, 2022 17:535,25569,177,30641,585,0002,028,0002,293,760
15Dec 30, 2022 17:535,26271,349,03242,663,0001,015,0002,449,408