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 11, 2024 20:26MatthiasMatthiasError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2024 20:3000000Error: expected "53685923856223737 ", got "53685923855967737 "
2Dec 11, 2024 20:3000000Error: expected "53692204138549753 ", got "53692201578549753 "
3Dec 11, 2024 20:368,44092,827,84568,050,0002,001,0002,285,568
4Dec 11, 2024 20:368,44494,352,01369,088,0001,001,0002,265,088
5Dec 11, 2024 20:268,44494,266,20568,081,0002,002,0002,285,568
6Dec 11, 2024 20:268,44994,707,47168,120,0002,003,0002,265,088
7Dec 11, 2024 20:368,44997,736,26768,121,0002,003,0002,285,568
8Dec 11, 2024 20:368,45097,513,04868,134,0002,003,0002,277,376
9Dec 11, 2024 20:368,45096,612,56968,132,0002,003,0002,523,136
10Dec 11, 2024 20:368,45091,369,75970,138,00002,285,568
11Dec 11, 2024 20:268,45491,971,09568,168,0002,004,0002,392,064
12Dec 11, 2024 20:268,45492,184,90768,166,0002,004,0002,265,088
13Dec 11, 2024 20:368,45497,093,88468,161,0002,004,0002,285,568
14Dec 11, 2024 20:368,45996,797,43768,206,0002,006,0002,273,280
15Dec 11, 2024 20:268,47094,179,22568,296,0002,008,0002,285,568
16Dec 11, 2024 20:368,61594,789,41470,501,0001,007,0002,285,568
17Dec 11, 2024 20:268,62499,202,87370,568,0001,008,0002,285,568