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 8, 2024 22:42Steve HanSteve HanScore: 9,877Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 22:429,539136,888,99779,176,71602,285,568
2May 8, 2024 22:429,546155,924,97579,229,19702,285,568
3May 8, 2024 22:429,865155,713,12081,879,48002,277,376
4May 8, 2024 22:429,877155,040,55481,980,15402,285,568
5May 8, 2024 22:429,888157,246,60482,071,25902,269,184
6May 8, 2024 22:429,890153,470,09182,088,80302,277,376