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 25, 2024 11:13GraceGraceScore: 8,544Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 11:137,976129,802,97266,204,00802,289,664
2May 25, 2024 11:137,992126,296,08966,332,39802,289,664
3May 25, 2024 11:138,007131,008,13266,456,27802,289,664
4May 25, 2024 11:138,514100,279,63669,656,0001,009,0002,285,568
5May 25, 2024 11:138,53390,292,27769,809,0001,011,0002,285,568
6May 25, 2024 11:138,53395,226,10668,832,0001,995,0002,285,568
7May 25, 2024 11:138,535103,688,27269,843,000997,0002,285,568
8May 25, 2024 11:138,54494,147,97768,918,0001,997,0002,285,568
9May 25, 2024 11:138,54899,445,46668,954,0001,998,0002,285,568
10May 25, 2024 11:138,55294,424,51368,979,0001,999,0002,527,232
11May 25, 2024 11:138,55494,588,11270,001,0001,000,0002,281,472
12May 25, 2024 11:138,56495,525,82170,080,0001,001,0002,277,376
13May 25, 2024 11:1311,120117,905,58890,293,0002,006,0002,285,568
14May 25, 2024 11:1311,148119,348,11091,520,0001,005,0002,285,568
15May 25, 2024 11:1311,183125,145,02491,819,000998,0002,273,280