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 29, 2024 18:12Matt 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 29, 2024 18:1700000Error: expected "53682498616880025 ", got "53682498360880025 "
2May 29, 2024 18:2300000Error: expected "53683799097637894 ", got "53683869073495308 "
3May 29, 2024 18:2300000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
4May 29, 2024 18:2200000Error: expected "53690106240337687 ", got "53690111851459025 "
5May 29, 2024 18:2100000Error: expected "53687625886191780 ", got "53687623326191780 "
6May 29, 2024 18:2100000Error: expected "53689756186037641 ", got "53689847487309806 "
7May 29, 2024 18:2000000Error: expected "53690935657531479 ", got "53690993604238898 "
8May 29, 2024 18:2000000Error: expected "53688218693083114 ", got "53688225693260350 "
9May 29, 2024 18:1900000Error: expected "53688552543703706 ", got "53688581020333223 "
10May 29, 2024 18:1900000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
11May 29, 2024 18:1800000Error: expected "53683383691792857 ", got "53683426519061493 "
12May 29, 2024 18:1700000Error: Exit with code 1: Segmentation fault at address: 268599328stderr
13May 29, 2024 18:1600000Error: expected "53682378550001952 ", got "53682403531216446 "
14May 29, 2024 18:1600000Error: expected "53684182482380227 ", got "53684179922380227 "
15May 29, 2024 18:1500000Error: expected "53686125881344724 ", got "53686193496617418 "
16May 29, 2024 18:1500000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
17May 29, 2024 18:1400000Error: expected "53689511777910866 ", got "53689486177910866 "
18May 29, 2024 18:1400000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
19May 29, 2024 18:1300000Error: expected "53690124903957333 ", got "53690171358920762 "
20May 29, 2024 18:1200000Error: expected "53683519866317678 ", got "53683564001883562 "
21May 29, 2024 18:245,855109,811,00648,594,75802,244,608
22May 29, 2024 18:246,006113,102,19649,846,84602,195,456
23May 29, 2024 18:246,057113,457,16550,269,73402,215,936