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 listApr 25, 2023 23:04Martin StensgårdMartin StensgårdScore: 1,642,552Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2023 23:041,641,54613,717,982,66513,624,834,71502,265,088
2Apr 25, 2023 23:041,642,55213,692,991,43713,633,178,27202,256,896
3Apr 25, 2023 23:041,643,36513,722,436,41813,639,931,99502,240,512