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 listJun 3, 2024 05:16GraceGraceScore: 5,349Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 3, 2024 05:165,30065,343,96841,991,0001,999,0002,273,280
2Jun 3, 2024 05:165,30375,065,56942,019,0002,000,0002,273,280
3Jun 3, 2024 05:165,31469,008,45743,101,0001,002,0002,273,280
4Jun 3, 2024 05:165,31465,842,24842,105,0002,005,0002,273,280
5Jun 3, 2024 05:165,32173,494,38443,162,0001,003,0002,273,280
6Jun 3, 2024 05:165,33566,370,85744,281,00002,273,280
7Jun 3, 2024 05:165,34566,944,07144,361,00002,396,160
8Jun 3, 2024 05:165,34966,942,27043,388,0001,009,0002,404,352
9Jun 3, 2024 05:165,35567,641,79744,443,00002,273,280
10Jun 3, 2024 05:165,36370,016,07943,506,0001,011,0002,273,280
11Jun 3, 2024 05:165,38177,661,38544,659,00002,404,352
12Jun 3, 2024 05:165,40169,683,99543,831,000996,0002,273,280
13Jun 3, 2024 05:165,519106,407,81845,811,19702,281,472
14Jun 3, 2024 05:165,578113,055,16746,299,98402,273,280
15Jun 3, 2024 05:165,598112,853,94946,465,46002,293,760