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 listMay 3, 2024 12:28Steve HanSteve HanScore: 107,291Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2024 12:30107,252961,783,339890,193,98902,293,760
2May 3, 2024 12:28107,274943,338,708890,377,18502,293,760
3May 3, 2024 12:30107,279971,347,715890,418,40602,293,760
4May 3, 2024 12:28107,291945,549,253890,513,25902,285,568
5May 3, 2024 12:28107,366957,127,752891,135,89502,289,664
6May 3, 2024 12:30107,374956,447,121891,201,94502,285,568