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 listMay 25, 2024 14:25Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 14:2900000Error: Exit with code 1: Segmentation fault at address: 0x5d8b0160stderr
2May 26, 2024 15:2400000Error: Exit with code 1: Segmentation fault at address: 0x1762c058c0stderr
3May 25, 2024 14:3400000Error: Exit with code 1: Segmentation fault at address: 0x18c0b016e0stderr
4May 25, 2024 14:3300000Error: expected "53690576340791972 ", got "53690622795755401 "
5May 25, 2024 14:3200000Error: expected "53684520959450713 ", got "53684532089831396 "
6May 25, 2024 14:3100000Error: expected "53689440277176107 ", got "53689460042120734 "
7May 25, 2024 14:3000000Error: expected "53692409420436906 ", got "53692535494012641 "
8May 25, 2024 14:3000000Error: Exit with code 1: Segmentation fault at address: 0x580c602d20stderr
9May 25, 2024 14:2900000Error: Exit with code 1: Segmentation fault at address: 0x6302c000stderr
10May 25, 2024 14:2800000Error: expected "53687485610423235 ", got "53687507468275664 "
11May 25, 2024 14:2600000Error: Exit with code 1: Segmentation fault at address: 0xdc0b058c0stderr
12May 25, 2024 14:2600000Error: expected "53692656441444355 ", got "53692719253047391 "
13May 25, 2024 14:2500000Error: expected "53684022963059963 ", got "53684061686185022 "
14May 25, 2024 14:2500000Error: expected "53681358079275276 ", got "53681383060489770 "
15May 25, 2024 14:356,600129,903,09754,784,05102,301,952
16May 25, 2024 14:356,626118,365,02554,996,65102,277,376
17May 25, 2024 14:356,632125,458,49355,041,51402,285,568