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 31, 2022 03:33Robert BurkeRobert BurkeScore: 8,263Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 03:338,25388,900,31067,495,0001,007,0002,433,024
2Jul 31, 2022 03:338,25799,725,44768,531,00002,277,376
3Jul 31, 2022 03:338,25796,318,28168,537,00002,433,024
4Jul 31, 2022 03:338,25897,205,88067,532,0001,007,0002,277,376
5Jul 31, 2022 03:338,25893,554,48768,543,00002,277,376
6Jul 31, 2022 03:338,25988,188,73868,548,00002,277,376
7Jul 31, 2022 03:338,26297,032,46067,568,0001,008,0002,277,376
8Jul 31, 2022 03:338,26397,644,57368,582,00002,437,120
9Jul 31, 2022 03:338,26394,068,81366,598,0001,988,0002,437,120
10Jul 31, 2022 03:338,26394,124,23668,582,00002,424,832
11Jul 31, 2022 03:338,265100,313,31868,602,00002,433,024
12Jul 31, 2022 03:338,28995,635,32268,802,00002,437,120
13Jul 31, 2022 03:338,978130,941,10974,520,30702,301,952
14Jul 31, 2022 03:339,003138,691,25974,721,22902,183,168
15Jul 31, 2022 03:339,013149,793,60574,811,45802,170,880