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 7, 2024 15:02GraceGraceError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 15:0300000Error: expected "53688271772314283 ", got "53688228822641323 "
2Jun 7, 2024 15:0300000Error: expected "53690322879492907 ", got "53690279929819947 "
3Jun 7, 2024 15:0300000Error: expected "53691840650195036 ", got "53691368203792476 "
4Jun 7, 2024 15:0200000Error: expected "53682631211617549 ", got "53682201714887949 "
5Jun 7, 2024 15:0200000Error: expected "53687585218162661 ", got "53687542268489701 "
6Jun 7, 2024 15:0200000Error: expected "53690540346987197 ", got "53690454447641277 "
7Jun 7, 2024 15:0200000Error: expected "53685203001802457 ", got "53685198706835161 "
8Jun 7, 2024 15:033,86659,649,45331,083,0001,002,0002,478,080
9Jun 7, 2024 15:023,86760,214,65729,091,0003,009,0002,273,280
10Jun 7, 2024 15:033,87654,710,07329,157,0003,016,0002,347,008
11Jun 7, 2024 15:023,87758,847,37530,166,0002,011,0002,273,280
12Jun 7, 2024 15:023,88057,119,89930,192,0002,012,0002,416,640
13Jun 7, 2024 15:033,88260,836,96930,210,0002,014,0002,273,280
14Jun 7, 2024 15:023,88652,787,70329,227,0003,023,0002,486,272
15Jun 7, 2024 15:023,88759,343,05130,245,0002,016,0002,486,272
16Jun 7, 2024 15:023,89153,705,38430,280,0002,018,0002,494,464
17Jun 7, 2024 15:033,89555,266,76129,300,0003,031,0002,273,280
18Jun 7, 2024 15:023,89755,097,40930,327,0002,021,0002,482,176
19Jun 7, 2024 15:023,90167,290,89729,343,0003,035,0002,273,280
20Jun 7, 2024 15:023,90353,672,34031,383,0001,012,0002,486,272
21Jun 7, 2024 15:023,92960,643,29131,595,0001,019,0002,273,280
22Jun 7, 2024 15:023,93058,530,32931,603,0001,019,0002,273,280
23Jun 7, 2024 15:033,93155,782,65830,590,0002,039,0002,273,280
24Jun 7, 2024 15:023,93858,879,84031,666,0001,021,0002,482,176
25Jun 7, 2024 15:033,93858,960,55531,666,0001,021,0002,473,984
26Jun 7, 2024 15:023,93956,994,73330,648,0002,043,0002,490,368
27Jun 7, 2024 15:023,93959,771,41931,676,0001,021,0002,486,272
28Jun 7, 2024 15:033,95165,201,48729,815,0002,981,0002,490,368
29Jun 7, 2024 15:023,95252,258,66129,823,0002,982,0002,342,912
30Jun 7, 2024 15:023,97557,143,41930,994,0001,999,0002,486,272
31Jun 7, 2024 15:023,99158,523,45331,117,0002,007,0002,273,280
32Jun 7, 2024 15:033,99857,742,68131,176,0002,011,0002,273,280
33Jun 7, 2024 15:034,01965,173,32631,333,0002,021,0002,273,280
34Jun 7, 2024 15:024,05862,313,14731,641,0002,041,0002,490,368
35Jun 7, 2024 15:024,085101,424,31833,903,41502,240,512
36Jun 7, 2024 15:034,10290,847,83634,043,38102,244,608
37Jun 7, 2024 15:024,109102,388,85034,101,64502,236,416
38Jun 7, 2024 15:034,11599,329,67534,153,24802,240,512
39Jun 7, 2024 15:034,118107,354,71934,177,03702,240,512
40Jun 7, 2024 15:034,122106,793,70234,216,19702,236,416
41Jun 7, 2024 15:024,125112,533,31534,237,97902,371,584
42Jun 7, 2024 15:024,125105,999,43634,237,52402,236,416
43Jun 7, 2024 15:034,143127,042,72634,385,01302,236,416
44Jun 7, 2024 15:034,143104,916,13934,385,15202,248,704
45Jun 7, 2024 15:034,149113,843,40534,439,17402,228,224
46Jun 7, 2024 15:024,15595,630,19534,483,16502,248,704
47Jun 7, 2024 15:034,15687,446,58634,494,12002,236,416
48Jun 7, 2024 15:034,15989,879,71034,518,84302,240,512
49Jun 7, 2024 15:034,17099,541,73234,614,68002,363,392
50Jun 7, 2024 15:024,171105,103,74934,616,81202,244,608
51Jun 7, 2024 15:034,179102,034,14734,687,37202,371,584
52Jun 7, 2024 15:024,213116,998,39934,971,97702,244,608
53Jun 7, 2024 15:034,215116,945,56134,980,91002,244,608
54Jun 7, 2024 15:024,221104,698,39135,037,59302,252,800
55Jun 7, 2024 15:034,22794,011,33535,087,72002,240,512
56Jun 7, 2024 15:024,235100,503,21135,148,80902,367,488
57Jun 7, 2024 15:034,247114,161,43635,247,12602,240,512
58Jun 7, 2024 15:024,294125,552,00035,639,80502,240,512
59Jun 7, 2024 15:034,296120,074,92535,658,19402,240,512
60Jun 7, 2024 15:024,347102,221,57736,081,86902,240,512
61Jun 7, 2024 15:024,371113,036,64136,280,66002,248,704