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 23, 2022 10:03Robert BurkeRobert BurkeScore: 8,257Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2022 10:038,17099,393,94366,811,000997,0002,277,376
2Jul 23, 2022 10:038,17189,598,15165,829,0001,994,0002,277,376
3Jul 23, 2022 10:038,17793,216,08267,873,00002,428,928
4Jul 23, 2022 10:038,22792,576,44367,282,0001,004,0002,428,928
5Jul 23, 2022 10:038,249101,243,32768,469,00002,428,928
6Jul 23, 2022 10:038,25287,328,52368,495,00002,433,024
7Jul 23, 2022 10:038,25596,530,33467,508,0001,007,0002,424,832
8Jul 23, 2022 10:038,25789,646,60267,528,0001,007,0002,433,024
9Jul 23, 2022 10:038,25898,322,92068,545,00002,539,520
10Jul 23, 2022 10:038,26098,336,94468,558,00002,433,024
11Jul 23, 2022 10:038,26891,855,52468,621,00002,424,832
12Jul 23, 2022 10:038,36992,254,19269,461,00002,277,376
13Jul 23, 2022 10:038,707133,334,92772,266,18102,170,880
14Jul 23, 2022 10:038,709125,687,62472,282,35502,174,976
15Jul 23, 2022 10:038,716125,777,83772,339,58202,174,976