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 listSep 6, 2022 17:03Bernard TeoBernard TeoScore: 8,266Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 6, 2022 17:038,25189,015,81168,486,00002,281,472
2Sep 6, 2022 17:038,25690,089,39167,515,0001,007,0002,400,256
3Sep 6, 2022 17:038,25997,014,20168,547,00002,273,280
4Sep 6, 2022 17:038,260100,411,84167,553,0001,008,0002,400,256
5Sep 6, 2022 17:038,26193,677,91667,556,0001,008,0002,396,160
6Sep 6, 2022 17:038,26498,900,90268,588,00002,273,280
7Sep 6, 2022 17:038,26696,637,45268,606,00002,510,848
8Sep 6, 2022 17:038,26695,283,79067,602,0001,008,0002,273,280
9Sep 6, 2022 17:038,26796,440,17566,625,0001,988,0002,273,280
10Sep 6, 2022 17:039,666112,840,42378,225,0002,005,0002,396,160
11Sep 6, 2022 17:039,670108,171,93779,254,0001,003,0002,273,280
12Sep 6, 2022 17:039,676104,148,84880,309,00002,273,280
13Sep 6, 2022 17:039,683149,987,31380,367,87402,281,472
14Sep 6, 2022 17:039,718144,642,99980,661,31002,285,568
15Sep 6, 2022 17:039,791149,504,31181,263,81302,277,376