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 listAug 8, 2023 16:35igorfardocigorfardocError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 8, 2023 16:3500000Error: expected "53690665451119791 ", got "1 5 5 3 4 1 6 5 7 0 3 1 5 0 8 2 6 2 7 0 5 7 9 1 1 3 3 0 2 4 6 6 3 8 9 9 6 3 8 5 7 0 1 2 9 1 1 9 5 1 3 4 5 7 7 5 5 8 6 9 7 5 4 9 2 7 3 9 1 1 8 2 2 5 7 5 2 1 0 8 1 9 3 5 9 1 3 2 4 2 5 9 7 8 0 7 1...