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 9, 2024 17:44matsuoka-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 9, 2024 17:4400000Error: expected "53693022721006726 ", got "83746212094414515"
2Jun 9, 2024 17:4400000Error: expected "53691415639160450 ", got "77145893008774563"
3Jun 9, 2024 17:4400000Error: expected "53686553652684762 ", got "97395809699643325"
4Jun 9, 2024 17:4500000Error: No answer to stdout. Died or killed?
5Jun 9, 2024 17:4500000Error: No answer to stdout. Died or killed?
6Jun 9, 2024 17:454,429106,146,20836,757,18502,252,800
7Jun 9, 2024 17:454,46297,136,30837,035,12702,260,992
8Jun 9, 2024 17:454,484100,612,04537,220,95502,396,160