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 14, 2022 22:47Robert BurkeRobert BurkeScore: 8,217Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2022 22:478,19191,413,98466,984,000999,0002,424,832
2Jul 14, 2022 22:478,20290,202,45267,073,0001,001,0002,269,184
3Jul 14, 2022 22:478,20990,890,99067,130,0001,001,0002,531,328
4Jul 14, 2022 22:478,21094,515,91267,145,0001,002,0002,420,736
5Jul 14, 2022 22:478,21197,785,27366,151,0002,004,0002,420,736
6Jul 14, 2022 22:478,21288,065,24467,154,0001,002,0002,424,832
7Jul 14, 2022 22:478,21483,729,73066,168,0002,005,0002,424,832
8Jul 14, 2022 22:478,21798,654,78367,201,0001,003,0002,531,328
9Jul 14, 2022 22:478,21990,057,99367,213,0001,003,0002,420,736
10Jul 14, 2022 22:478,22090,210,95866,216,0002,006,0002,527,232
11Jul 14, 2022 22:478,22598,894,15667,263,0001,003,0002,531,328
12Jul 14, 2022 22:478,22692,187,85168,279,00002,424,832
13Jul 14, 2022 22:478,798129,983,15373,025,61502,293,760
14Jul 14, 2022 22:478,820126,812,91073,202,46702,301,952
15Jul 14, 2022 22:478,824124,188,60473,240,67902,297,856