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 listJan 21, 2023 16:21Kevin HeaveyKevin HeaveyScore: 47,193Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2023 14:4047,168460,166,487391,492,29702,224,128
2Jan 20, 2023 14:4047,190472,751,213391,679,79202,220,032
3Jan 21, 2023 16:2147,190460,482,817391,674,15002,211,840
4Jan 21, 2023 16:2147,193461,579,002391,704,73402,232,320
5Jan 20, 2023 14:4047,199457,447,221391,753,09402,228,224
6Jan 21, 2023 16:2147,228462,197,737391,995,99602,232,320