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 listJun 12, 2024 13:57Matt 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
1Jun 12, 2024 14:1900000Error: Exit with code 1: Segmentation fault at address: 401602601472stderr
2Jun 12, 2024 13:5900000Error: Exit with code 1: Segmentation fault at address: 401602601472stderr
3Jun 12, 2024 14:0100000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
4Jun 12, 2024 14:0100000Error: expected "53692562297689336 ", got "53692630286359405 "
5Jun 12, 2024 14:0200000Error: expected "53681880524623978 ", got "53681902382476407 "
6Jun 12, 2024 14:0300000Error: expected "53683199952123801 ", got "53683247249682916 "
7Jun 12, 2024 14:0300000Error: Exit with code 1: Segmentation fault at address: 23636740992stderr
8Jun 12, 2024 14:0400000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
9Jun 12, 2024 14:0400000Error: expected "53691847347327094 ", got "53691943789565596 "
10Jun 12, 2024 14:0900000Error: expected "53683108572812101 ", got "53683167213303472 "
11Jun 12, 2024 14:1000000Error: expected "53691333907437318 ", got "53691723518657691 "
12Jun 12, 2024 14:1100000Error: expected "53682300170875161 ", got "53682537951471014 "
13Jun 12, 2024 14:1100000Error: expected "53681836467670850 ", got "53681888718887798 "
14Jun 12, 2024 14:1200000Error: expected "53692021002682933 ", got "53692085237803698 "
15Jun 12, 2024 14:1800000Error: expected "53688621875903381 ", got "53688642206299851 "
16Jun 12, 2024 14:1800000Error: Exit with code 1: Segmentation fault at address: 189174735296stderr
17Jun 12, 2024 13:5800000Error: expected "53680354232555512 ", got "53680403841838998 "
18Jun 12, 2024 14:1900000Error: Exit with code 1: Segmentation fault at address: 378349335040stderr
19Jun 12, 2024 14:2000000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
20Jun 12, 2024 14:2000000Error: expected "53686309556899917 ", got "53686375780334596 "
21Jun 12, 2024 14:3800000Error: expected "53689725640960419 ", got "53690129113166551 "
22Jun 12, 2024 14:3900000Error: expected "53691349169059463 ", got "53691574219907216 "
23Jun 12, 2024 14:3900000Error: Exit with code 1: Segmentation fault at address: 378349335040stderr
24Jun 12, 2024 14:4000000Error: expected "53683165327135756 ", got "53683183325829980 "
25Jun 12, 2024 14:4100000Error: expected "53680689967357839 ", got "53680701097738522 "
26Jun 12, 2024 14:4100000Error: expected "53689184136633120 ", got "53689195267013803 "
27Jun 12, 2024 14:4200000Error: expected "53692526188177369 ", got "53692592663962219 "
28Jun 12, 2024 14:4200000Error: Exit with code 1: Segmentation fault at address: 53155990592stderr
29Jun 12, 2024 14:5100000Error: expected "53692801634524258 ", got "53692868110309108 "
30Jun 12, 2024 14:5200000Error: expected "53688638265987715 ", got "53688702501108480 "
31Jun 12, 2024 14:5300000Error: expected "53689479196937338 ", got "53689490327318021 "
32Jun 16, 2024 19:1400000Error: expected "53688830388247649 ", got "53688878612988104 "
33Jun 12, 2024 13:5700000Error: Exit with code 1: Segmentation fault at address: 378349335040stderr
34Jun 12, 2024 14:055,141109,753,23442,670,97202,293,760
35Jun 12, 2024 14:535,155114,131,47342,789,81002,191,360
36Jun 12, 2024 14:005,163105,761,40042,854,24702,293,760
37Jun 12, 2024 14:065,191122,498,02343,082,92602,285,568
38Jun 12, 2024 14:435,195105,792,19943,117,50302,297,856
39Jun 12, 2024 14:535,205111,820,12143,203,58102,285,568
40Jun 12, 2024 14:095,208115,569,45443,228,38102,183,168
41Jun 12, 2024 14:435,210108,639,71843,244,00202,306,048
42Jun 12, 2024 14:215,210107,024,95843,243,67702,273,280
43Jun 12, 2024 14:065,221114,868,82443,330,73202,293,760
44Jun 12, 2024 14:125,239121,374,21643,480,51102,412,544
45Jun 12, 2024 14:005,250103,102,44043,573,38302,273,280
46Jun 12, 2024 14:535,254111,203,88543,608,70302,293,760
47Jun 12, 2024 14:065,258113,785,31243,637,88302,293,760
48Jun 12, 2024 14:215,259115,968,60143,647,65702,183,168
49Jun 12, 2024 14:005,265110,728,09743,702,37502,293,760
50Jun 12, 2024 14:215,267113,154,54043,713,03502,301,952
51Jun 12, 2024 15:035,268120,998,13543,728,30102,281,472
52Jun 12, 2024 13:585,270109,150,03943,738,96102,174,976
53Jun 12, 2024 14:055,276119,317,49043,791,64202,289,664
54Jun 12, 2024 15:035,284142,901,34843,858,40702,174,976
55Jun 12, 2024 14:125,288115,115,21643,886,96802,433,024
56Jun 12, 2024 14:095,288109,724,84443,892,06202,297,856
57Jun 12, 2024 14:055,291119,873,63743,915,71002,306,048
58Jun 12, 2024 14:435,294133,565,27943,936,85102,301,952
59Jun 12, 2024 13:585,294106,065,90543,938,12902,293,760
60Jun 12, 2024 13:585,301119,938,15344,001,80302,301,952
61Jun 12, 2024 15:035,306121,691,57444,043,37302,289,664
62Jun 12, 2024 14:125,317119,954,55944,129,00502,289,664
63Jun 12, 2024 14:095,318108,912,23644,143,42002,301,952