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 28, 2024 04:29Matt 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 28, 2024 04:3400000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
2May 28, 2024 04:4500000Error: expected "53683632669152862 ", got "53683650667847086 "
3May 28, 2024 04:4400000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
4May 28, 2024 04:4300000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
5May 28, 2024 04:4200000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
6May 28, 2024 04:4100000Error: expected "53690696830646407 ", got "53690732152717074 "
7May 28, 2024 04:4000000Error: expected "53687208887889565 ", got "53687209795667367 "
8May 28, 2024 04:3900000Error: expected "53683141900318696 ", got "53683149535927900 "
9May 28, 2024 04:3800000Error: expected "53688744005466249 ", got "53688792230206704 "
10May 28, 2024 04:3700000Error: expected "53692165081007134 ", got "53692287277054260 "
11May 28, 2024 04:3600000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
12May 28, 2024 04:3500000Error: expected "53689409188068912 ", got "53689417067973712 "
13May 28, 2024 04:3100000Error: expected "53689437771804367 ", got "53689498090313555 "
14May 28, 2024 04:3000000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
15May 28, 2024 04:336,220116,943,89251,622,38202,199,552
16May 28, 2024 04:336,266131,355,27852,007,94002,203,648
17May 28, 2024 04:466,275122,663,02652,078,48502,199,552
18May 28, 2024 04:296,337108,309,11852,594,20802,203,648
19May 28, 2024 04:336,345122,185,69552,664,91802,187,264
20May 28, 2024 04:296,354115,421,78052,735,17802,203,648
21May 28, 2024 04:296,357128,328,16352,760,11402,318,336
22May 28, 2024 04:466,371117,364,39852,876,49502,199,552
23May 28, 2024 04:466,397109,216,59553,092,38302,195,456