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 23:14Matt 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 23:3300000Error: expected "53690366122406908 ", got "53690383898854843 "
2May 27, 2024 23:2400000Error: expected "53681755716356464 ", got "53681763351965668 "
3May 27, 2024 23:2600000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
4May 27, 2024 23:2700000Error: expected "53690605500662171 ", got "53690651955625600 "
5May 27, 2024 23:2800000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
6May 27, 2024 23:2900000Error: expected "53683752570840906 ", got "53683763701221589 "
7May 27, 2024 23:3000000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
8May 27, 2024 23:3100000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
9May 27, 2024 23:3200000Error: expected "53681666332684480 ", got "53681683859480009 "
10May 27, 2024 23:2300000Error: expected "53689650104939406 ", got "53689669869884033 "
11May 27, 2024 23:3400000Error: expected "53689687715197930 ", got "53689693326319268 "
12May 27, 2024 23:3500000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
13May 27, 2024 23:3800000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
14May 27, 2024 23:3900000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
15May 27, 2024 23:4000000Error: expected "53681610425308866 ", got "53681690140725329 "
16May 27, 2024 23:4100000Error: expected "53692119950327607 ", got "53692126354163404 "
17May 27, 2024 23:4200000Error: expected "53691666358307159 ", got "53691678248601905 "
18May 27, 2024 23:2200000Error: expected "53688434045493241 ", got "53688482270233696 "
19May 27, 2024 23:1400000Error: expected "53683897356355641 ", got "53683943143001262 "
20May 27, 2024 23:1500000Error: expected "53692926687255789 ", got "53692994675925858 "
21May 27, 2024 23:1600000Error: expected "53682525004017408 ", got "53682572478914192 "
22May 27, 2024 23:1700000Error: expected "53689936973414912 ", got "53689985198155367 "
23May 27, 2024 23:1800000Error: expected "53682406818411607 ", got "53682459069628555 "
24May 27, 2024 23:1900000Error: expected "53691141822755096 ", got "53691209811425165 "
25May 27, 2024 23:2000000Error: expected "53690565779065998 ", got "53690687975113124 "
26May 27, 2024 23:436,169130,030,58651,205,28602,199,552
27May 27, 2024 23:436,307104,294,24852,344,56702,195,456
28May 27, 2024 23:366,314114,347,91552,402,29502,203,648
29May 27, 2024 23:366,337108,625,66952,595,33602,215,936
30May 27, 2024 23:436,346111,189,02752,670,51902,195,456
31May 27, 2024 23:256,387126,575,28953,012,49302,293,760
32May 27, 2024 23:256,391123,895,55453,041,64402,207,744
33May 27, 2024 23:366,400118,055,16953,124,04302,187,264
34May 27, 2024 23:256,422116,458,15153,304,71902,224,128