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 listJul 4, 2023 13:20Berk Emre SarıbaşBerk Emre SarıbaşScore: 55,306Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2023 13:2055,295530,906,984458,950,96502,277,376
2Jul 4, 2023 13:2355,297517,814,709458,961,75102,285,568
3Jul 4, 2023 13:2055,305550,537,346459,031,82002,297,856
4Jul 4, 2023 13:2355,306516,896,351459,035,85402,285,568
5Jul 4, 2023 13:2355,311531,646,628459,082,08102,297,856
6Jul 4, 2023 13:2055,316522,436,717459,121,64602,293,760