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 14:39GraceGraceError
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 14:4000000Error: expected "53690719230808802 ", got "53690676281135842 "
2Jun 7, 2024 14:3900000Error: expected "53682602239560569 ", got "53682559289887609 "
3Jun 7, 2024 14:3900000Error: expected "53681518559900613 ", got "53681471315260357 "
4Jun 7, 2024 14:3900000Error: expected "53686368241689555 ", got "53686325292016595 "
5Jun 7, 2024 14:3900000Error: expected "53681924596239885 ", got "53681495099510285 "
6Jun 7, 2024 14:3900000Error: expected "53681097866412489 ", got "53681093571445193 "
7Jun 7, 2024 14:3800000Error: expected "53689965772754576 ", got "53689922823081616 "
8Jun 7, 2024 14:393,80662,539,17129,552,0002,038,0002,273,280
9Jun 7, 2024 14:393,81261,285,66730,617,0001,020,0002,273,280
10Jun 7, 2024 14:393,83856,516,06029,862,0001,990,0002,482,176
11Jun 7, 2024 14:393,84857,026,29428,948,0002,994,0002,482,176
12Jun 7, 2024 14:393,87652,558,72529,152,0003,015,0002,273,280
13Jun 7, 2024 14:393,88058,022,26330,189,0002,012,0002,482,176
14Jun 7, 2024 14:393,88055,683,73730,195,0002,013,0002,490,368
15Jun 7, 2024 14:393,89358,103,60130,292,0002,019,0002,273,280
16Jun 7, 2024 14:393,89658,602,97231,324,0001,010,0002,482,176
17Jun 7, 2024 14:393,91653,532,97231,491,0001,015,0002,486,272
18Jun 7, 2024 14:393,93361,565,44331,626,0001,020,0002,486,272
19Jun 7, 2024 14:394,01161,093,90531,273,0002,017,0002,465,792
20Jun 7, 2024 14:394,068109,994,33433,767,76702,244,608
21Jun 7, 2024 14:394,08791,927,91533,918,98402,240,512
22Jun 7, 2024 14:384,113107,456,95534,140,06002,236,416
23Jun 7, 2024 14:394,11495,240,37334,147,49702,236,416
24Jun 7, 2024 14:394,116109,439,57334,165,14402,248,704
25Jun 7, 2024 14:394,11693,705,05234,163,52502,240,512
26Jun 7, 2024 14:394,12099,867,39734,199,36102,228,224
27Jun 7, 2024 14:394,131106,818,18834,284,52902,232,320
28Jun 7, 2024 14:394,13191,929,48234,289,95402,236,416
29Jun 7, 2024 14:394,132101,777,84634,295,83902,236,416
30Jun 7, 2024 14:394,13890,744,88034,347,83902,240,512
31Jun 7, 2024 14:394,147107,748,48934,417,59902,248,704
32Jun 7, 2024 14:394,148104,522,45734,424,73402,236,416
33Jun 7, 2024 14:384,15095,710,97434,444,37902,248,704
34Jun 7, 2024 14:384,150111,727,16534,441,60502,248,704
35Jun 7, 2024 14:394,170121,458,82134,613,97802,375,680
36Jun 7, 2024 14:384,173106,154,15934,635,98702,240,512
37Jun 7, 2024 14:394,174108,229,02434,648,28402,232,320
38Jun 7, 2024 14:394,185115,505,33934,737,24402,248,704
39Jun 7, 2024 14:394,189107,018,08234,772,32202,240,512
40Jun 7, 2024 14:384,194111,500,98834,811,24602,252,800
41Jun 7, 2024 14:384,203101,581,58034,886,82902,240,512
42Jun 7, 2024 14:384,251113,129,83835,286,61202,244,608
43Jun 7, 2024 14:384,31095,156,21335,772,54702,240,512
44Jun 7, 2024 14:384,317117,502,06535,828,59502,240,512
45Jun 7, 2024 14:394,341100,656,94836,032,17002,236,416
46Jun 7, 2024 14:394,347107,046,60036,081,91702,244,608