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 31, 2024 05:01GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 05:0100000Error: expected "53687891772560560 ", got "53687826236560560 "
2May 31, 2024 05:0100000Error: expected "53688630279792583 ", got "53688629617878983 "
3May 31, 2024 05:0100000Error: expected "53684085286782828 ", got "53684084631422828 "
4May 31, 2024 05:0100000Error: expected "53681713128405985 ", got "53681713121852385 "