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 listJul 14, 2023 12:33CadovvlCadovvlScore: 36,616Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2023 12:3336,607360,988,089303,834,36302,293,760
2Jul 14, 2023 12:3436,615373,150,770303,900,46802,293,760
3Jul 14, 2023 12:3436,615366,700,426303,908,49802,297,856
4Jul 14, 2023 12:3336,616368,099,533303,916,03902,289,664
5Jul 14, 2023 12:3336,618368,555,628303,928,19202,293,760
6Jul 14, 2023 12:3436,628365,750,285304,012,98802,301,952