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 12:13GraceGraceError
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 12:1300000Error: expected "53684707075698567 ", got "53684702780731271 "
2Jun 7, 2024 12:134,09164,281,40231,957,0001,997,000176,128
3Jun 7, 2024 12:134,12856,759,88231,239,0003,023,000376,832
4Jun 7, 2024 12:134,14557,409,58431,367,0003,035,0002,338,816
5Jun 7, 2024 12:134,14760,646,68333,407,0001,012,000380,928
6Jun 7, 2024 12:134,15062,227,30934,444,00002,273,280
7Jun 7, 2024 12:134,15358,028,82032,444,0002,027,0002,273,280
8Jun 7, 2024 12:134,15462,428,76733,465,0001,014,0002,486,272
9Jun 7, 2024 12:134,15457,680,72933,465,0001,014,0002,486,272
10Jun 7, 2024 12:134,15656,072,14632,469,0002,029,0002,342,912
11Jun 7, 2024 12:134,15756,363,38033,489,0001,014,0002,273,280
12Jun 7, 2024 12:134,16760,911,74733,570,0001,017,0002,273,280
13Jun 7, 2024 12:134,17166,730,12432,586,0002,036,0002,269,184
14Jun 7, 2024 12:134,17362,956,16832,603,0002,037,0002,273,280
15Jun 7, 2024 12:134,17460,457,01133,624,0001,018,0002,486,272
16Jun 7, 2024 12:134,17657,985,10933,639,0001,019,0002,273,280
17Jun 7, 2024 12:134,17761,843,83632,634,0002,039,0002,285,568
18Jun 7, 2024 12:134,17964,720,77933,662,0001,020,0002,494,464
19Jun 7, 2024 12:134,19362,183,39133,809,000994,0002,486,272
20Jun 7, 2024 12:134,19463,564,21133,820,000994,0002,273,280
21Jun 7, 2024 12:134,19662,059,89133,831,000995,0002,273,280
22Jun 7, 2024 12:134,19660,037,98931,839,0002,984,0002,486,272
23Jun 7, 2024 12:134,20059,355,91431,870,0002,987,0002,473,984
24Jun 7, 2024 12:134,20068,725,30933,838,0001,025,0002,273,280
25Jun 7, 2024 12:134,20263,552,32932,885,0001,993,0002,486,272
26Jun 7, 2024 12:134,20357,782,33132,894,0001,993,000176,128
27Jun 7, 2024 12:134,21158,663,01232,954,0001,997,0002,482,176
28Jun 7, 2024 12:134,21455,775,49232,975,0001,998,0002,273,280
29Jun 7, 2024 12:134,22564,353,35932,060,0003,005,0002,482,176
30Jun 7, 2024 12:134,23761,110,77833,158,0002,009,0002,473,984
31Jun 7, 2024 12:134,23862,897,94632,162,0003,015,0002,404,352
32Jun 7, 2024 12:134,24261,441,42033,195,0002,011,0002,273,280
33Jun 7, 2024 12:134,24457,613,63032,203,0003,019,0002,473,984
34Jun 7, 2024 12:134,25358,178,72633,283,0002,017,0002,445,312
35Jun 7, 2024 12:134,310101,768,53035,772,58902,240,512
36Jun 7, 2024 12:134,33596,692,12135,983,29202,244,608
37Jun 7, 2024 12:134,340112,661,65536,022,81602,244,608
38Jun 7, 2024 12:134,34198,763,92536,032,73302,240,512
39Jun 7, 2024 12:134,342114,721,61236,041,71302,244,608
40Jun 7, 2024 12:134,368107,418,61536,254,74102,248,704
41Jun 7, 2024 12:134,406102,141,24236,569,84102,232,320
42Jun 7, 2024 12:134,414115,079,31836,636,15902,236,416
43Jun 7, 2024 12:134,44398,160,25536,876,28502,240,512