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 20, 2023 19:28gchebanovgchebanovScore: 10,734Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 19:2810,697115,099,73986,790,0001,995,0002,281,472
2Jul 20, 2023 19:2810,712114,669,37386,912,0001,997,0002,281,472
3Jul 20, 2023 19:2810,716118,190,94286,946,0001,998,0002,281,472
4Jul 20, 2023 19:2810,717113,750,51786,956,0001,998,0002,281,472
5Jul 20, 2023 19:2810,729118,161,58187,049,0002,001,0002,281,472
6Jul 20, 2023 19:2810,730110,294,06287,055,0002,001,0002,281,472
7Jul 20, 2023 19:2810,730114,789,73687,059,0002,001,0002,277,376
8Jul 20, 2023 19:2810,734112,198,17588,093,0001,001,0002,265,088
9Jul 20, 2023 19:2810,762111,823,99188,325,0001,003,0002,281,472
10Jul 20, 2023 19:2810,920120,227,96790,637,00002,281,472
11Jul 20, 2023 19:2810,938117,504,43088,788,0001,995,0002,265,088
12Jul 20, 2023 19:2810,940122,564,84289,807,000997,0002,519,040
13Jul 20, 2023 19:2812,811167,587,967106,328,87202,281,472
14Jul 20, 2023 19:2812,891167,144,423106,991,88802,273,280
15Jul 20, 2023 19:2813,152177,233,132109,159,87102,285,568