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:49Joad NacerJoad NacerScore: 8,111Success
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:497,843126,448,80465,094,41702,404,352
2Apr 29, 2024 19:497,903126,807,58665,595,23802,260,992
3Apr 29, 2024 19:498,020123,706,62666,568,06902,273,280
4Apr 29, 2024 19:498,09594,818,50365,184,0002,005,0002,285,568
5Apr 29, 2024 19:498,09688,745,26866,192,0001,002,0002,269,184
6Apr 29, 2024 19:498,09991,233,23765,219,0002,006,0002,285,568
7Apr 29, 2024 19:498,10093,502,62465,221,0002,006,0002,285,568
8Apr 29, 2024 19:498,11190,202,78065,315,0002,009,0002,260,992
9Apr 29, 2024 19:498,13389,749,58166,500,0001,007,0002,285,568
10Apr 29, 2024 19:498,13590,444,91567,517,00002,285,568
11Apr 29, 2024 19:498,14095,148,68866,554,0001,008,0002,285,568
12Apr 29, 2024 19:498,29692,643,94566,859,0001,995,0002,285,568
13Apr 29, 2024 19:498,90396,309,19072,896,000998,0002,285,568
14Apr 29, 2024 19:498,923100,569,92772,064,0002,001,0002,260,992
15Apr 29, 2024 19:498,934101,385,35872,149,0002,004,0002,285,568