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 10, 2023 03:00sliceteamsliceteamScore: 8,771Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 10, 2023 03:008,612133,339,93071,478,47202,269,184
2Jul 10, 2023 03:008,738130,411,88072,528,84002,260,992
3Jul 10, 2023 03:008,743100,718,53071,556,0001,007,0002,383,872
4Jul 10, 2023 03:008,767100,745,10372,766,00002,498,560
5Jul 10, 2023 03:008,77099,562,23570,799,0001,994,0002,260,992
6Jul 10, 2023 03:008,771101,641,89472,799,00002,260,992
7Jul 10, 2023 03:008,77196,250,16171,791,0001,011,0002,383,872
8Jul 10, 2023 03:008,771101,534,94970,809,0001,994,0002,260,992
9Jul 10, 2023 03:008,772100,017,53470,813,0001,994,0002,523,136
10Jul 10, 2023 03:008,773100,010,41671,820,000997,0002,383,872
11Jul 10, 2023 03:008,77599,283,82670,838,0001,995,0002,383,872
12Jul 10, 2023 03:008,82997,048,21172,279,0001,003,0002,260,992
13Jul 10, 2023 03:008,84792,201,61273,434,00002,519,040
14Jul 10, 2023 03:008,85398,017,40372,470,0001,006,0002,256,896
15Jul 10, 2023 03:008,864133,690,58273,574,06502,256,896