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 24, 2024 14:17Matt 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 24, 2024 14:1800000Error: Exit with code 1: Segmentation fault at address: 0xdc0b05c0stderr
2May 24, 2024 14:2400000Error: Exit with code 1: Segmentation fault at address: 0x6e0582c120stderr
3May 24, 2024 14:2300000Error: Exit with code 1: Segmentation fault at address: 0x580dc0b0e0stderr
4May 24, 2024 14:2300000Error: expected "53681132204404688 ", got "53681156672382211 "
5May 24, 2024 14:2300000Error: expected "53679780137239830 ", got "53679787772849034 "
6May 24, 2024 14:2200000Error: expected "53684855129718829 ", got "53684876973084998 "
7May 24, 2024 14:1900000Error: Exit with code 1: Segmentation fault at address: 0x2c0c602d00stderr
8May 24, 2024 14:1900000Error: Exit with code 1: Segmentation fault at address: 0xdc0b058c0stderr
9May 24, 2024 14:1800000Error: Exit with code 1: Segmentation fault at address: 0x5d82c16a0stderr
10May 24, 2024 14:1800000Error: Exit with code 1: Segmentation fault at address: 0x6301605900stderr
11May 24, 2024 14:1800000Error: Exit with code 1: Segmentation fault at address: 0x18c0b016e0stderr
12May 24, 2024 14:1800000Error: Exit with code 1: Segmentation fault at address: 0x580dc0b0e0stderr
13May 24, 2024 14:1700000Error: Exit with code 1: Segmentation fault at address: 0x6301605900stderr
14May 24, 2024 14:1700000Error: Exit with code 1: Segmentation fault at address: 0x18c0b016e0stderr
15May 24, 2024 14:246,647112,465,42355,167,64402,277,376
16May 24, 2024 14:246,703129,138,71755,637,02502,277,376
17May 24, 2024 14:246,776119,873,37056,238,86702,281,472