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 listDec 28, 2022 17:08Robert BurkeRobert BurkeScore: 8,260Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 17:088,22490,026,61967,254,0001,003,0002,424,832
2Dec 28, 2022 17:088,24089,560,83268,391,00002,437,120
3Dec 28, 2022 17:088,24891,589,53567,450,0001,006,0002,433,024
4Dec 28, 2022 17:088,25197,995,81267,480,0001,007,0002,277,376
5Dec 28, 2022 17:088,25589,362,24167,509,0001,007,0002,539,520
6Dec 28, 2022 17:088,25588,517,60367,507,0001,007,0002,510,848
7Dec 28, 2022 17:088,25792,503,51067,528,0001,007,0002,433,024
8Dec 28, 2022 17:088,26090,077,92368,554,00002,433,024
9Dec 28, 2022 17:088,26389,892,23668,579,00002,539,520
10Dec 28, 2022 17:088,27094,915,99768,637,00002,424,832
11Dec 28, 2022 17:088,28792,505,46567,790,000996,0002,277,376
12Dec 28, 2022 17:088,29494,219,27966,849,0001,995,0002,539,520
13Dec 28, 2022 17:088,387135,790,04269,608,70002,301,952
14Dec 28, 2022 17:088,406125,195,50469,769,59502,301,952
15Dec 28, 2022 17:088,406144,388,69469,770,25002,183,168