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 listOct 13, 2023 04:50Serge SmirnovSerge SmirnovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 13, 2023 04:5000000Error: expected "53679946714068154 ", got "53679946714065594 "stderr
2Oct 13, 2023 04:5000000Error: expected "53681373232650272 ", got "53681373230061856 "stderr
3Oct 13, 2023 04:5100000Error: expected "53681345316000564 ", got "53681345315744564 "stderr
4Oct 13, 2023 04:5100000Error: expected "53689919158520017 ", got "53689919158468817 "stderr
5Oct 13, 2023 04:5100000Error: expected "53689518234481754 ", got "53689518234430554 "stderr
6Oct 13, 2023 04:5400000Error: expected "53692514334717431 ", got "53692514334461431 "stderr