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 21, 2022 06:37Robert BurkeRobert BurkeScore: 8,909Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2022 06:378,796134,251,26573,007,48802,174,976
2Jul 21, 2022 06:378,854138,501,03773,485,01802,174,976
3Jul 21, 2022 06:378,869126,921,69173,613,56102,301,952
4Jul 21, 2022 06:378,88898,181,03672,778,000996,0002,277,376
5Jul 21, 2022 06:378,89692,667,65071,843,0001,995,0002,277,376
6Jul 21, 2022 06:378,89799,569,37671,854,0001,995,0002,433,024
7Jul 21, 2022 06:378,89798,386,46872,849,000997,0002,433,024
8Jul 21, 2022 06:378,90995,249,83872,947,000999,0002,539,520
9Jul 21, 2022 06:378,91097,355,78472,952,000999,0002,428,928
10Jul 21, 2022 06:378,91596,765,36272,995,000999,0002,277,376
11Jul 21, 2022 06:378,91994,087,37973,024,0001,000,0002,539,520
12Jul 21, 2022 06:378,92497,152,35473,070,0001,000,0002,433,024
13Jul 21, 2022 06:378,92798,300,24973,093,0001,001,0002,277,376
14Jul 21, 2022 06:378,994102,816,13473,646,0001,008,0002,433,024
15Jul 21, 2022 06:379,01496,339,25372,819,0001,995,0002,428,928