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 29, 2024 17:22GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 17:2200000Error: expected "53692751768193700 ", got "53692751112833700 "
2May 29, 2024 17:236,302121,915,97952,303,35302,293,760
3May 29, 2024 17:226,311120,510,08052,384,96902,256,896
4May 29, 2024 17:226,317113,467,39852,429,98502,293,760
5May 29, 2024 17:226,317114,802,03552,428,64602,297,856
6May 29, 2024 17:236,322120,729,83652,475,29202,293,760
7May 29, 2024 17:236,330112,200,27652,539,52302,297,856