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 27, 2024 17:19Matt 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 27, 2024 17:2100000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
2May 27, 2024 17:3300000Error: expected "53692217293583075 ", got "53692343367158810 "
3May 27, 2024 17:3200000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
4May 27, 2024 17:3100000Error: Exit with code 1: Segmentation fault at address: 1082163328stderr
5May 27, 2024 17:3000000Error: expected "53689509424160602 ", got "53689569742669790 "
6May 27, 2024 17:2900000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
7May 27, 2024 17:2800000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
8May 27, 2024 17:2600000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
9May 27, 2024 17:2400000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
10May 27, 2024 17:2300000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
11May 27, 2024 17:2200000Error: expected "53681068125846950 ", got "53681084724361705 "
12May 27, 2024 17:2000000Error: expected "53680922056524748 ", got "53680940055218972 "
13May 27, 2024 17:1900000Error: expected "53683738451666102 ", got "53683756450360326 "
14May 27, 2024 17:276,512120,992,00554,052,57402,215,936
15May 27, 2024 17:346,520117,262,06054,115,23202,187,264
16May 27, 2024 17:256,531116,334,60054,207,49302,195,456
17May 27, 2024 17:346,532110,878,11854,215,24802,179,072
18May 27, 2024 17:276,536118,785,44554,251,94802,203,648
19May 27, 2024 17:256,538119,793,37754,268,90202,203,648
20May 27, 2024 17:256,542112,907,72154,298,33702,191,360
21May 27, 2024 17:346,616134,118,62654,909,64102,465,792
22May 27, 2024 17:276,645134,919,55855,153,81002,211,840