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 listSep 8, 2023 14:13Kevin HeaveyKevin HeaveyScore: 53,186Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2023 14:1853,141527,390,268441,072,81102,232,320
2Sep 8, 2023 14:1853,156504,926,424441,194,51502,256,896
3Sep 8, 2023 14:1853,185508,052,603441,434,30702,224,128
4Sep 8, 2023 14:1353,186504,232,440441,439,71502,215,936
5Sep 8, 2023 14:1353,216500,523,121441,694,36302,224,128
6Sep 8, 2023 14:1353,431503,972,829443,477,89202,224,128