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 listJun 12, 2021 15:11evgenikwtevgenikwtError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2021 20:3100000Error: expected "53682670823665190 ", got "53682670798065190 "
2Jun 12, 2021 15:1128,711293,172,388238,303,49202,256,896
3Jun 12, 2021 15:2628,719292,530,237238,370,44702,252,800
4Jun 12, 2021 15:1128,733309,700,157238,480,20002,248,704
5Jun 12, 2021 15:1128,773302,337,752238,814,40102,265,088
6Jun 12, 2021 15:2628,773304,415,214238,817,28102,256,896
7Jun 12, 2021 15:2628,775307,372,800238,835,41202,248,704