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 10:58matsuoka-601matsuoka-601Error
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 10:5800000Error: No answer to stdout. Died or killed?
2Jun 5, 2024 10:5800000Error: expected "53686289433484506 ", got "66871449416289347"
3Jun 5, 2024 10:5900000Error: expected "53682744234429789 ", got "53667764358312665"
4Jun 5, 2024 10:5900000Error: expected "53683710669270613 ", got "53668636266699670"
5Jun 5, 2024 11:0000000Error: expected "53690371021818761 ", got "53675195197935217"
6Jun 5, 2024 11:0100000Error: expected "53687103614312017 ", got "53672043997021769"
7Jun 5, 2024 11:0100000Error: expected "53686018469587370 ", got "53670930040685139"
8Jun 5, 2024 11:0200000Error: expected "53683728339884525 ", got "54668102613332214"
9Jun 5, 2024 11:0200000Error: No answer to stdout. Died or killed?
10Jun 5, 2024 11:0200000Error: expected "53683596511328883 ", got "53668523966601269"