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 listFeb 25, 2023 16:14Saveliev AntonSaveliev AntonError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 25, 2023 16:1400000Error: Exit with code 1: 2023/02/25 16:14:44 [52 53 54 48 51 54 50 57 49 10 49 52 48 52 55 52 54 53 50 56 10 51 51 57 52 54 55 57 49 51 10 53 56 54 55 53 49 51 49 57 10 55 50 52 51 49 49 51 50 52 10 49 57 55 56 52 54 51 54 57 51 10 49 48 49 48 57 52 56...stderr