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 30, 2022 15:17Jack FrigaardJack FrigaardScore: 5,162Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 15:175,12064,743,28840,471,0002,023,0002,285,568
2Dec 30, 2022 15:175,12568,206,62440,514,0002,025,0002,285,568
3Dec 30, 2022 15:175,12770,503,20740,530,0002,026,0002,285,568
4Dec 30, 2022 15:175,13976,115,00841,636,0001,015,0002,293,760
5Dec 30, 2022 15:175,14369,197,75739,640,0003,049,0002,285,568
6Dec 30, 2022 15:175,15965,513,55240,826,0001,991,0002,293,760
7Dec 30, 2022 15:175,16171,177,55140,842,0001,992,0002,285,568
8Dec 30, 2022 15:175,16265,792,78139,857,0002,989,0002,289,664
9Dec 30, 2022 15:175,18465,234,77340,024,0003,001,0002,285,568
10Dec 30, 2022 15:175,23767,633,96141,448,0002,021,0002,285,568
11Dec 30, 2022 15:175,28074,272,73339,840,0003,984,0002,285,568
12Dec 30, 2022 15:175,283110,495,27643,846,73602,297,856
13Dec 30, 2022 15:175,295108,362,20443,945,78902,297,856
14Dec 30, 2022 15:175,307113,784,34244,052,00502,297,856
15Dec 30, 2022 15:175,40373,064,33843,845,000996,0002,277,376