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 8, 2024 07:04matsuoka-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 8, 2024 07:0400000Error: expected "53691976946523613 ", got "53691974526093365"stderr
2Jun 8, 2024 10:3500000Error: expected "53688120964568441 ", got "90174251411421062"stderr
3Jun 8, 2024 10:3500000Error: expected "53686806761509469 ", got "58547736896998359"stderr
4Jun 8, 2024 10:3600000Error: expected "53692644522303672 ", got "90287221014058360"stderr
5Jun 8, 2024 10:3600000Error: expected "53687818324455081 ", got "53687815904024833"stderr
6Jun 8, 2024 10:3600000Error: expected "53692070315581452 ", got "77145337658203247"stderr
7Jun 8, 2024 10:3700000Error: No answer to stdout. Died or killed?stderr
8Jun 8, 2024 10:3800000Error: expected "53690952373879106 ", got "53690949953448858"stderr
9Jun 8, 2024 07:055,047105,307,22541,891,22702,240,512
10Jun 8, 2024 07:055,066114,659,70042,048,87802,236,416
11Jun 8, 2024 07:055,074107,448,17742,115,80502,240,512