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 listJul 24, 2023 00:57sliceteamsliceteamScore: 8,763Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2023 00:578,730100,730,24772,455,00002,285,568
2Jul 24, 2023 00:578,742101,378,82672,559,00002,265,088
3Jul 24, 2023 00:578,744104,938,03971,568,0001,008,0002,285,568
4Jul 24, 2023 00:578,74499,566,90771,570,0001,008,0002,285,568
5Jul 24, 2023 00:578,750100,896,74772,621,00002,527,232
6Jul 24, 2023 00:578,75098,405,60171,614,0001,008,0002,285,568
7Jul 24, 2023 00:578,75799,961,46571,670,0001,009,0002,285,568
8Jul 24, 2023 00:578,76395,616,33470,741,0001,992,0002,347,008
9Jul 24, 2023 00:578,76999,729,54071,783,000996,0002,285,568
10Jul 24, 2023 00:578,88699,555,43473,757,00002,260,992
11Jul 24, 2023 00:578,93297,394,55572,136,0002,003,0002,285,568
12Jul 24, 2023 00:579,015102,980,70673,830,000997,0002,285,568
13Jul 24, 2023 00:579,506148,112,52078,899,03202,289,664
14Jul 24, 2023 00:579,584152,749,07279,543,19402,293,760
15Jul 24, 2023 00:5713,860175,528,291115,039,88802,289,664