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 10, 2022 05:59Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2022 05:5900000Error: expected "53682580105491212 ", got "53682580102931212 "stderr
2Jan 10, 2022 05:5900000Error: expected "53691884300096858 ", got "53691881740096858 "stderr
3Jan 10, 2022 05:5912,463172,653,890103,441,93702,240,512
4Jan 10, 2022 05:5912,654200,519,940105,024,37402,252,800
5Jan 10, 2022 05:5912,672193,295,397105,175,81702,252,800