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 listJun 12, 2023 17:27Dmitry MakarovDmitry MakarovScore: 95,980Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2023 17:2695,909848,863,732796,046,33502,281,472
2Jun 12, 2023 17:2795,958876,166,577796,448,19202,285,568
3Jun 12, 2023 17:2695,971867,901,942796,556,66402,281,472
4Jun 12, 2023 17:2795,980865,799,076796,633,30202,285,568
5Jun 12, 2023 17:2695,983869,530,122796,660,97602,293,760
6Jun 12, 2023 17:2796,016866,217,587796,933,31102,289,664