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 15: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 15:3900000Error: expected "53691549980913480 ", got "53691555592034818 "
2May 27, 2024 15:3100000Error: expected "53682962199116053 ", got "53683014553802353 "
3May 27, 2024 15:3200000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
4May 27, 2024 15:3300000Error: expected "53690095171409719 ", got "53690191613648221 "
5May 27, 2024 15:3400000Error: expected "53686390423096381 ", got "53686402313391127 "
6May 27, 2024 15:3500000Error: expected "53691345797075280 ", got "53691351408196618 "
7May 27, 2024 15:3600000Error: expected "53691779168037783 ", got "53691814490108450 "
8May 27, 2024 15:3700000Error: expected "53684311982105464 ", got "53684312889883266 "
9May 27, 2024 15:3800000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
10May 27, 2024 15:3000000Error: expected "53683550117770569 ", got "53683594253336453 "
11May 27, 2024 15:4100000Error: expected "53688309580800496 ", got "53688352683992357 "
12May 27, 2024 15:4200000Error: expected "53691533647779963 ", got "53691591361590043 "
13May 27, 2024 15:4300000Error: expected "53680589177496347 ", got "53680636475055462 "
14May 27, 2024 15:4400000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
15May 27, 2024 15:4500000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
16May 27, 2024 15:4600000Error: expected "53682498272180336 ", got "53682499179958138 "
17May 27, 2024 15:4700000Error: expected "53691456593448064 ", got "53691516911957252 "
18May 27, 2024 15:2900000Error: expected "53689082119205114 ", got "53689163665338077 "
19May 27, 2024 15:2000000Error: expected "53685623953298411 ", got "53685683200001142 "
20May 27, 2024 15:2100000Error: expected "53683708778141943 ", got "53683733637176652 "
21May 27, 2024 15:2200000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
22May 27, 2024 15:2400000Error: expected "53692518339805417 ", got "53692586328475486 "
23May 27, 2024 15:2500000Error: expected "53691408047479648 ", got "53691432860218413 "
24May 27, 2024 15:2700000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
25May 27, 2024 15:2800000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
26May 27, 2024 15:196,193125,115,77751,405,73402,199,552
27May 27, 2024 15:196,197122,141,81751,439,12602,199,552
28May 27, 2024 15:266,219119,955,05651,614,51902,211,840
29May 27, 2024 15:486,224116,734,77451,655,15702,330,624
30May 27, 2024 15:266,286130,137,44152,172,63302,207,744
31May 27, 2024 15:196,314122,981,03252,405,09502,203,648
32May 27, 2024 15:486,361129,574,15552,796,98802,207,744
33May 27, 2024 15:486,364124,950,98652,818,10102,207,744
34May 27, 2024 15:266,377123,821,10552,930,47502,203,648