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 listApr 29, 2024 19:48Joad NacerJoad NacerScore: 9,957Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 19:489,574140,799,13979,465,00102,289,664
2Apr 29, 2024 19:489,608132,118,12979,747,40302,269,184
3Apr 29, 2024 19:489,863143,328,74381,862,54202,281,472
4Apr 29, 2024 19:489,945110,632,51781,541,0001,006,0002,510,848
5Apr 29, 2024 19:489,952111,622,23981,598,0001,007,0002,285,568
6Apr 29, 2024 19:489,956108,260,12981,631,0001,007,0002,285,568
7Apr 29, 2024 19:489,957110,579,35381,639,0001,007,0002,285,568
8Apr 29, 2024 19:489,957108,896,93581,636,0001,007,0002,519,040
9Apr 29, 2024 19:489,961107,508,78882,679,00002,506,752
10Apr 29, 2024 19:489,965108,868,55182,707,00002,338,816
11Apr 29, 2024 19:489,980108,882,70780,840,0001,996,0002,285,568
12Apr 29, 2024 19:489,991111,343,99280,928,0001,998,0002,285,568
13Apr 29, 2024 19:4810,978113,673,78090,117,0001,001,0002,285,568
14Apr 29, 2024 19:4810,981117,353,89189,138,0002,003,0002,514,944
15Apr 29, 2024 19:4811,050119,019,72690,717,000996,0002,285,568