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 20, 2023 21:16gchebanovgchebanovScore: 8,420Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 21:167,40482,220,52960,448,0001,007,0002,457,600
2Jul 20, 2023 21:167,42591,347,83261,625,00002,428,928
3Jul 20, 2023 21:167,49489,229,29261,200,0001,003,0002,420,736
4Jul 20, 2023 21:168,35492,266,48467,327,0002,009,0002,404,352
5Jul 20, 2023 21:168,35597,367,26967,334,0002,009,0002,396,160
6Jul 20, 2023 21:168,35798,167,50667,357,0002,010,0002,461,696
7Jul 20, 2023 21:168,38198,109,61268,558,0001,008,0002,412,544
8Jul 20, 2023 21:168,42095,986,38268,887,000998,0002,392,064
9Jul 20, 2023 21:168,449102,239,67969,124,0001,001,0002,412,544
10Jul 20, 2023 21:168,46596,456,95568,253,0002,007,0002,387,968
11Jul 20, 2023 21:168,46799,294,48068,266,0002,007,0002,416,640
12Jul 20, 2023 21:168,50897,026,50570,618,00002,416,640
13Jul 20, 2023 21:168,647137,111,64071,772,97402,289,664
14Jul 20, 2023 21:168,776131,412,07472,843,48302,265,088
15Jul 20, 2023 21:168,909145,680,06473,945,82702,277,376