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 20:44Matt 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 21:0300000Error: expected "53692391653402985 ", got "53692397264524323 "
2May 27, 2024 20:5500000Error: expected "53689684828447789 ", got "53689776129719954 "
3May 27, 2024 20:5600000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
4May 27, 2024 20:5700000Error: expected "53688347846528661 ", got "53688348754306463 "
5May 27, 2024 20:5800000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
6May 27, 2024 20:5900000Error: expected "53684933761786667 ", got "53684934669564469 "
7May 27, 2024 21:0000000Error: expected "53682133414910195 ", got "53682158396124689 "
8May 27, 2024 21:0100000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
9May 27, 2024 21:0200000Error: expected "53688202305936878 ", got "53688222636333348 "
10May 27, 2024 20:5400000Error: expected "53681496225267117 ", got "53681573908418055 "
11May 27, 2024 21:0400000Error: expected "53679908447179874 ", got "53679949517539757 "
12May 27, 2024 21:0500000Error: expected "53681369490921199 ", got "53681447174072137 "
13May 27, 2024 21:0600000Error: expected "53690163377666056 ", got "53690166236778263 "
14May 27, 2024 21:0700000Error: expected "53685886841993833 ", got "53685908699846262 "
15May 27, 2024 21:0800000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
16May 27, 2024 21:1000000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
17May 27, 2024 21:1100000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
18May 27, 2024 20:5300000Error: expected "53689830528625837 ", got "53689842418920583 "
19May 27, 2024 20:5100000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
20May 27, 2024 20:5000000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
21May 27, 2024 20:4900000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
22May 27, 2024 20:4800000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
23May 27, 2024 20:4700000Error: expected "53683943081121503 ", got "53683954211502186 "
24May 27, 2024 20:4400000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
25May 27, 2024 20:456,202117,021,10851,472,46002,179,072
26May 27, 2024 21:126,204120,629,84651,491,05902,215,936
27May 27, 2024 21:126,214122,577,73351,576,61102,228,224
28May 27, 2024 20:466,321131,552,82252,464,17302,203,648
29May 27, 2024 20:456,342115,864,69952,641,37702,195,456
30May 27, 2024 20:466,346130,145,64152,668,13602,187,264
31May 27, 2024 21:126,370115,931,68552,866,97002,195,456
32May 27, 2024 20:466,376104,618,63952,919,13302,199,552
33May 27, 2024 20:456,407128,118,59153,179,49302,203,648