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 00:52Matt 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 01:1200000Error: expected "53689934702642671 ", got "53689955033039141 "
2May 28, 2024 01:0400000Error: expected "53690129211402413 ", got "53690176686299197 "
3May 28, 2024 01:0500000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
4May 28, 2024 01:0600000Error: expected "53691127916652228 ", got "53691139047032911 "
5May 28, 2024 01:0700000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
6May 28, 2024 01:0800000Error: expected "53689789883126187 ", got "53689825205196854 "
7May 28, 2024 01:0900000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
8May 28, 2024 01:1000000Error: expected "53689674917880078 ", got "53689756464013041 "
9May 28, 2024 01:1100000Error: expected "53687931444829943 ", got "53687956257568708 "
10May 28, 2024 01:0300000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
11May 28, 2024 01:1300000Error: expected "53692604459014150 ", got "53692610070135488 "
12May 28, 2024 01:1500000Error: expected "53687217000884911 ", got "53687217908662713 "
13May 28, 2024 01:1600000Error: expected "53683737391623014 ", got "53683762372837508 "
14May 28, 2024 01:1700000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
15May 28, 2024 01:1800000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
16May 28, 2024 01:1900000Error: expected "53687622945743111 ", got "53687680892450530 "
17May 28, 2024 01:2000000Error: expected "53692500800125515 ", got "53692541915420840 "
18May 28, 2024 01:2100000Error: expected "53684144682885251 ", got "53684145590663053 "
19May 28, 2024 01:0200000Error: expected "53684026087132432 ", got "53684061409203099 "
20May 28, 2024 00:5300000Error: expected "53682953907000817 ", got "53683037313955077 "
21May 28, 2024 00:5400000Error: expected "53691215581044953 ", got "53691337777092079 "
22May 28, 2024 00:5500000Error: expected "53683032923159069 ", got "53683095469595999 "
23May 28, 2024 00:5700000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
24May 28, 2024 00:5900000Error: expected "53692562008025208 ", got "53692622326534396 "
25May 28, 2024 01:0000000Error: expected "53687982288791291 ", got "53688051663019404 "
26May 28, 2024 01:0100000Error: expected "53693085833996529 ", got "53693097724291275 "
27May 28, 2024 00:566,149114,745,71751,038,80202,195,456
28May 28, 2024 00:526,199122,329,16951,454,14502,199,552
29May 28, 2024 01:226,289127,855,78452,197,14902,215,936
30May 28, 2024 01:226,324119,153,32952,491,62402,199,552
31May 28, 2024 00:566,324108,222,78452,485,42502,195,456
32May 28, 2024 00:566,325104,496,74552,501,31202,191,360
33May 28, 2024 00:526,342110,226,51152,635,38702,207,744
34May 28, 2024 01:226,358123,688,59652,768,31602,199,552
35May 28, 2024 00:526,370119,828,75752,868,37102,199,552