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:54Yuriy 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:5400000Error: expected "53689597987264537 ", got "53689595427264537 "stderr
2Jan 10, 2022 06:1400000Error: expected "53689387914447811 ", got "53689385354447811 "stderr
3Jan 10, 2022 05:5412,039166,323,16599,924,27002,269,184
4Jan 10, 2022 06:1412,043165,547,60499,956,30902,273,280
5Jan 10, 2022 05:5412,354173,493,081102,540,14502,260,992
6Jan 10, 2022 06:1412,356171,045,560102,554,63302,281,472
7Jan 10, 2022 05:5412,357176,884,713102,562,17202,265,088
8Jan 10, 2022 06:1412,360177,624,452102,586,38702,265,088