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:02Matt 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:0400000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
2May 28, 2024 04:1300000Error: Exit with code 1: Segmentation fault at address: 1082163328stderr
3May 28, 2024 04:1200000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
4May 28, 2024 04:1100000Error: expected "53681068460245008 ", got "53681148175661471 "
5May 28, 2024 04:1000000Error: expected "53689956973989508 ", got "53689962585110846 "
6May 28, 2024 04:0900000Error: expected "53680930345542784 ", got "53680977643101899 "
7May 28, 2024 04:0800000Error: expected "53688755202428304 ", got "53688766332808987 "
8May 28, 2024 04:0700000Error: expected "53692799192871848 ", got "53692804803993186 "
9May 28, 2024 04:0600000Error: expected "53688716676914070 ", got "53688727807294753 "
10May 28, 2024 04:0500000Error: expected "53682769389767570 ", got "53682828030258941 "
11May 28, 2024 04:0300000Error: expected "53692981935504213 ", got "53692987546625551 "
12May 28, 2024 04:166,185114,164,31451,336,85802,207,744
13May 28, 2024 04:166,194122,405,12851,413,64602,183,168
14May 28, 2024 04:146,221139,335,91251,632,10502,310,144
15May 28, 2024 04:146,230128,198,32851,711,23602,207,744
16May 28, 2024 04:166,246112,530,57851,845,90902,211,840
17May 28, 2024 04:026,267115,798,15752,019,22502,199,552
18May 28, 2024 04:146,315129,138,08252,413,69302,187,264
19May 28, 2024 04:026,326116,130,42052,506,31202,215,936
20May 28, 2024 04:026,336123,827,13652,587,59602,265,088