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 listMay 27, 2024 13:39GraceGraceScore: 7,015Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 13:406,94090,066,13257,599,00002,273,280
2May 27, 2024 13:396,95284,318,39756,693,0001,012,0002,277,376
3May 27, 2024 13:406,95390,515,35056,701,0001,012,0002,285,568
4May 27, 2024 13:406,96888,401,55956,834,000997,0002,285,568
5May 27, 2024 13:406,96890,948,88255,839,0001,994,0002,269,184
6May 27, 2024 13:396,96984,215,99855,847,0001,994,0002,273,280
7May 27, 2024 13:406,97092,319,68655,856,0001,994,0002,273,280
8May 27, 2024 13:396,97779,814,44255,910,0001,996,0002,285,568
9May 27, 2024 13:396,98380,367,81955,959,0001,998,0002,285,568
10May 27, 2024 13:406,98478,968,00855,968,0001,998,0002,400,256
11May 27, 2024 13:396,99581,676,32856,058,0002,002,0002,285,568
12May 27, 2024 13:396,99580,617,01356,058,0002,002,0002,277,376
13May 27, 2024 13:406,99682,959,52956,066,0002,002,0002,293,760
14May 27, 2024 13:407,00487,226,81056,128,0002,004,0002,285,568
15May 27, 2024 13:397,01285,815,20856,192,0002,006,0002,277,376
16May 27, 2024 13:397,01580,476,71357,219,0001,003,0002,367,488
17May 27, 2024 13:407,01684,983,45156,228,0002,008,0002,269,184
18May 27, 2024 13:397,02882,639,20857,327,0001,005,0002,285,568
19May 27, 2024 13:397,660133,235,73863,576,33402,281,472
20May 27, 2024 13:397,721127,203,27964,083,04002,289,664
21May 27, 2024 13:407,900128,286,20565,570,19102,289,664
22May 27, 2024 13:407,914125,525,19365,687,59002,289,664
23May 27, 2024 13:397,941135,686,26865,908,50702,301,952
24May 27, 2024 13:407,955133,866,98666,029,36302,289,664
25May 27, 2024 13:398,56198,024,75069,053,0002,001,0002,273,280
26May 27, 2024 13:408,58894,313,48369,275,0002,007,0002,285,568
27May 27, 2024 13:408,60594,198,04769,410,0002,011,0002,273,280
28May 27, 2024 13:398,61590,322,96071,508,00002,273,280
29May 27, 2024 13:398,634105,435,01871,664,00002,269,184
30May 27, 2024 13:408,68793,562,52171,098,0001,001,0002,285,568