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 16, 2022 05:47Yuriy 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
1Jul 16, 2022 05:4800000Error: expected "53683852867616196 ", got "53683852865056196 "
2Jul 16, 2022 05:5100000Error: expected "53688812578215624 ", got "53688812575655624 "
3Jul 16, 2022 05:5100000Error: expected "53680548889476725 ", got "53680548889451125 "
4Jul 16, 2022 05:4711,757152,093,09297,583,72202,281,472
5Jul 16, 2022 05:4711,760180,336,77397,609,02202,281,472
6Jul 16, 2022 05:4811,763154,784,82197,630,66302,285,568
7Jul 16, 2022 05:4811,766165,680,53397,654,17102,277,376
8Jul 16, 2022 05:4811,771163,653,06897,700,23102,273,280
9Jul 16, 2022 05:4711,773161,103,65597,714,25302,281,472