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 listMay 28, 2024 11:25Matt 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
1May 28, 2024 11:2500000Error: expected "53690293226109985 ", got "53690357461230750 "
2May 28, 2024 11:2600000Error: expected "53688065165332721 ", got "53688100487403388 "
3May 28, 2024 11:2700000Error: expected "53692405954705984 ", got "53692413834610784 "
4May 28, 2024 11:2800000Error: expected "53689153507656441 ", got "53689164638037124 "
5May 28, 2024 11:2900000Error: expected "53686849272447463 ", got "53686939001592808 "
6May 28, 2024 11:326,186126,197,61251,341,35402,420,736
7May 28, 2024 11:306,210128,402,83251,547,11302,277,376
8May 28, 2024 11:326,269120,663,37052,036,63302,297,856
9May 28, 2024 11:306,309118,128,35052,360,74702,183,168
10May 28, 2024 11:306,325127,224,53752,501,49302,297,856
11May 28, 2024 11:326,338119,385,20252,607,07702,424,832