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 19:16Matt 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 19:2400000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
2May 27, 2024 19:4100000Error: expected "53684345914080134 ", got "53684415288308247 "
3May 27, 2024 19:4000000Error: expected "53689826738460043 ", got "53689884685167462 "
4May 27, 2024 19:3900000Error: expected "53689796399830603 ", got "53689887701102768 "
5May 27, 2024 19:3800000Error: expected "53683152055044483 ", got "53683215627066100 "
6May 27, 2024 19:3700000Error: expected "53691553983096607 ", got "53691567846642366 "
7May 27, 2024 19:3600000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
8May 27, 2024 19:3500000Error: expected "53692529847521464 ", got "53692590166030652 "
9May 27, 2024 19:3400000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
10May 27, 2024 19:3300000Error: expected "53688962771358355 ", got "53689027006479120 "
11May 27, 2024 19:3200000Error: expected "53681136344613375 ", got "53681161325827869 "
12May 27, 2024 19:2900000Error: expected "53681236813531033 ", got "53681292651139157 "
13May 27, 2024 19:2800000Error: Exit with code 1: Segmentation fault at address: 1082163328stderr
14May 27, 2024 19:2700000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
15May 27, 2024 19:2600000Error: expected "53680971460707783 ", got "53680972368485585 "
16May 27, 2024 19:2500000Error: expected "53687109678346281 ", got "53687173913467046 "
17May 27, 2024 19:2300000Error: expected "53679578577834896 ", got "53679582708038343 "
18May 27, 2024 19:2200000Error: expected "53691438835940514 ", got "53691528929062715 "
19May 27, 2024 19:2100000Error: expected "53688862270871664 ", got "53688915717975713 "
20May 27, 2024 19:2000000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
21May 27, 2024 19:1800000Error: expected "53687193671902437 ", got "53687228993973104 "
22May 27, 2024 19:1700000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
23May 27, 2024 19:1600000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
24May 27, 2024 19:426,179116,973,82851,286,81602,203,648
25May 27, 2024 19:426,183114,952,15951,322,81102,207,744
26May 27, 2024 19:196,237120,864,59751,770,80002,191,360
27May 27, 2024 19:316,238122,895,82251,774,74202,207,744
28May 27, 2024 19:316,258125,336,72351,944,91702,191,360
29May 27, 2024 19:316,280121,312,29452,124,40602,203,648
30May 27, 2024 19:196,326126,522,20052,504,32902,220,032
31May 27, 2024 19:196,345112,861,04452,663,24702,191,360
32May 27, 2024 19:426,400131,082,87853,115,96302,203,648