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 13:43GraceGraceError
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 13:4300000Error: expected "53689741480428602 ", got "53689741480363066 "
2Jun 7, 2024 13:434,03356,407,62132,460,0001,014,0002,486,272
3Jun 7, 2024 13:434,03954,333,22231,491,0002,031,0002,486,272
4Jun 7, 2024 13:434,04759,411,12131,558,0002,036,0002,482,176
5Jun 7, 2024 13:434,04964,891,83231,568,0002,036,0002,486,272
6Jun 7, 2024 13:434,05866,465,92031,644,0002,041,0002,482,176
7Jun 7, 2024 13:434,05961,915,13632,669,0001,020,0002,273,280
8Jun 7, 2024 13:434,06066,308,17031,655,0002,042,0002,347,008
9Jun 7, 2024 13:434,06359,819,82131,683,0002,044,0002,478,080
10Jun 7, 2024 13:434,07558,736,85630,835,0002,984,0002,273,280
11Jun 7, 2024 13:434,07560,060,11131,834,0001,989,0002,527,232
12Jun 7, 2024 13:434,07662,265,37032,835,000995,0002,273,280
13Jun 7, 2024 13:434,07862,271,99832,849,000995,0002,494,464
14Jun 7, 2024 13:434,07857,150,56332,854,000995,0002,289,664
15Jun 7, 2024 13:434,08062,778,16330,878,0002,988,0002,273,280
16Jun 7, 2024 13:434,08058,768,40230,877,0002,988,0002,326,528
17Jun 7, 2024 13:434,08357,304,36830,903,0002,990,0002,486,272
18Jun 7, 2024 13:434,08560,374,58132,906,000997,0002,273,280
19Jun 7, 2024 13:434,08661,132,29931,920,0001,995,0002,490,368
20Jun 7, 2024 13:434,08758,026,65930,930,0002,993,0002,490,368
21Jun 7, 2024 13:434,08957,480,55531,939,0001,996,0002,273,280
22Jun 7, 2024 13:434,09857,513,09732,016,0002,001,0002,273,280
23Jun 7, 2024 13:434,09859,360,71332,010,0002,000,0002,506,752
24Jun 7, 2024 13:434,10157,603,47531,035,0003,003,0002,273,280
25Jun 7, 2024 13:434,10657,180,28332,079,0002,004,0002,273,280
26Jun 7, 2024 13:434,10758,061,67332,081,0002,005,0002,293,760
27Jun 7, 2024 13:434,12161,874,03831,185,0003,017,0002,273,280
28Jun 7, 2024 13:434,12263,719,49431,192,0003,018,0002,387,968
29Jun 7, 2024 13:434,12357,115,10332,207,0002,012,0002,478,080
30Jun 7, 2024 13:434,13166,317,11131,263,0003,025,0002,273,280
31Jun 7, 2024 13:434,15859,555,39832,485,0002,030,0002,297,856
32Jun 7, 2024 13:434,16863,709,64333,575,0001,017,0002,273,280
33Jun 7, 2024 13:434,233101,372,10735,135,66002,248,704
34Jun 7, 2024 13:434,23855,730,97134,170,0001,005,0002,482,176
35Jun 7, 2024 13:434,249106,097,62935,265,21602,252,800
36Jun 7, 2024 13:434,26492,925,95935,394,87902,240,512
37Jun 7, 2024 13:434,266100,891,32335,405,55602,232,320
38Jun 7, 2024 13:434,26699,004,34635,410,66602,240,512
39Jun 7, 2024 13:434,272100,447,11135,458,10902,244,608
40Jun 7, 2024 13:434,27863,115,20932,464,0003,043,0002,486,272
41Jun 7, 2024 13:434,280106,680,77935,526,87802,232,320
42Jun 7, 2024 13:434,371124,083,19736,276,35402,236,416
43Jun 7, 2024 13:434,47199,964,12137,110,33502,248,704