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 26, 2024 17:11Matt 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 26, 2024 17:1500000Error: expected "53692147727109166 ", got "53692244323156292 "
2May 26, 2024 17:1200000Error: expected "53686598755036047 ", got "53686596195036047 "
3May 26, 2024 17:1200000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
4May 26, 2024 17:1300000Error: Exit with code 1: Segmentation fault at address: 2281963776stderr
5May 26, 2024 17:1400000Error: expected "53683897009071750 ", got "53683951448256915 "
6May 26, 2024 17:1400000Error: expected "53690154436134303 ", got "53690218671255068 "
7May 26, 2024 17:1400000Error: expected "53686873683983993 ", got "53686963413129338 "
8May 26, 2024 17:1500000Error: expected "53687861891031021 ", got "53687926126151786 "
9May 26, 2024 17:1500000Error: expected "53692910548618021 ", got "53692974783738786 "
10May 26, 2024 17:1200000Error: expected "53690864543330405 ", got "53690876433625151 "
11May 26, 2024 17:1600000Error: Exit with code 1: Segmentation fault at address: 1074397312stderr
12May 26, 2024 17:1600000Error: expected "53685991744150806 ", got "53686083670521591 "
13May 27, 2024 13:4800000Error: expected "53690125847415993 ", got "53690161169486660 "
14May 27, 2024 13:4900000Error: Exit with code 1: Segmentation fault at address: 1074856448stderr
15May 27, 2024 13:4900000Error: expected "53690292892313068 ", got "53690324772552190 "
16May 27, 2024 13:5100000Error: expected "53686927582852036 ", got "53687004482847457 "
17May 27, 2024 13:5200000Error: expected "53690637989242691 ", got "53690649119623374 "
18May 26, 2024 17:1100000Error: expected "53691020999464900 ", got "53691034863010659 "
19May 26, 2024 17:136,139108,638,40650,954,43302,220,032
20May 26, 2024 17:166,139131,346,97950,952,95502,203,648
21May 26, 2024 17:166,142125,202,38550,976,60402,215,936
22May 27, 2024 13:506,161121,941,51251,136,07502,224,128
23May 27, 2024 13:526,194121,992,36851,409,24802,220,032
24May 27, 2024 13:536,218114,135,08651,610,55202,203,648
25May 26, 2024 17:166,265121,644,18551,995,96602,199,552
26May 26, 2024 17:136,267120,073,37852,019,37502,203,648
27May 27, 2024 13:526,272113,018,59252,061,54402,224,128
28May 26, 2024 17:136,273123,907,23252,068,09302,240,512
29May 27, 2024 13:526,286115,636,72352,170,08502,191,360
30May 27, 2024 13:506,294110,981,71052,241,99002,211,840
31May 27, 2024 13:536,318117,823,75652,438,13702,195,456
32May 27, 2024 13:536,359105,019,43652,781,60002,215,936
33May 27, 2024 13:506,471131,641,19453,709,56202,207,744