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 15, 2022 00:41Robert BurkeRobert BurkeScore: 8,200Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 15, 2022 00:418,17391,976,38766,836,000997,0002,531,328
2Jul 15, 2022 00:418,18391,647,88866,923,000998,0002,428,928
3Jul 15, 2022 00:418,18692,694,61566,944,000999,0002,416,640
4Jul 15, 2022 00:418,18992,381,63466,967,000999,0002,531,328
5Jul 15, 2022 00:418,19493,460,18467,008,0001,000,0002,420,736
6Jul 15, 2022 00:418,19488,150,68266,007,0002,000,0002,506,752
7Jul 15, 2022 00:418,19690,253,07067,024,0001,000,0002,424,832
8Jul 15, 2022 00:418,20094,383,19767,064,0001,000,0002,412,544
9Jul 15, 2022 00:418,20191,131,51667,066,0001,000,0002,527,232
10Jul 15, 2022 00:418,20586,507,40667,104,0001,001,0002,428,928
11Jul 15, 2022 00:418,22890,400,64867,287,0001,004,0002,428,928
12Jul 15, 2022 00:418,26999,114,28968,636,00002,531,328
13Jul 15, 2022 00:418,744148,961,33872,576,40802,301,952
14Jul 15, 2022 00:418,753137,344,28872,649,23502,170,880
15Jul 15, 2022 00:418,766138,400,87272,760,73802,170,880