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 5, 2024 13:19Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2024 13:1900000Error: expected "53681847468091579 ", got "53681865466785803 "
2Jun 5, 2024 13:1900000Error: expected "53692344075877042 ", got "53692355966171788 "
3Jun 5, 2024 13:205,208112,814,47943,228,29502,281,472
4Jun 5, 2024 13:205,285109,368,66543,864,58302,289,664
5Jun 5, 2024 13:205,334128,888,52744,271,75002,420,736