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:40GraceGraceScore: 4,206Success
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:404,01155,298,93831,273,0002,017,0002,273,280
2Jun 7, 2024 13:404,04361,137,21733,558,00002,486,272
3Jun 7, 2024 13:404,04460,340,39331,533,0002,034,0002,486,272
4Jun 7, 2024 13:404,04454,657,09931,531,0002,034,0002,375,680
5Jun 7, 2024 13:404,05360,646,38332,622,0001,019,0002,273,280
6Jun 7, 2024 13:404,05459,818,23131,610,0002,039,0002,273,280
7Jun 7, 2024 13:404,06061,778,08732,681,0001,021,0002,478,080
8Jun 7, 2024 13:404,06564,644,02131,756,0001,984,0002,486,272
9Jun 7, 2024 13:404,07664,435,77432,836,000995,0002,498,560
10Jun 7, 2024 13:404,07760,781,30630,852,0002,985,0002,273,280
11Jun 7, 2024 13:404,07760,909,27631,846,0001,990,0002,273,280
12Jun 7, 2024 13:404,07859,469,76930,858,0002,986,0002,273,280
13Jun 7, 2024 13:404,07856,616,44931,857,0001,991,0002,273,280
14Jun 7, 2024 13:404,07961,660,76331,861,0001,991,0002,482,176
15Jun 7, 2024 13:404,08556,011,80431,914,0001,994,0002,510,848
16Jun 7, 2024 13:404,08556,656,42831,908,0001,994,0002,383,872
17Jun 7, 2024 13:404,08655,376,72831,918,0001,994,0002,486,272
18Jun 7, 2024 13:404,09758,457,08533,005,0001,000,0002,490,368
19Jun 7, 2024 13:404,09958,185,96532,018,0002,001,0002,273,280
20Jun 7, 2024 13:404,10056,032,73832,028,0002,001,0002,486,272
21Jun 7, 2024 13:404,10158,029,63632,033,0002,002,0002,273,280
22Jun 7, 2024 13:404,12356,938,82533,212,0001,006,0002,490,368
23Jun 7, 2024 13:404,12656,217,91132,234,0002,014,0002,318,336
24Jun 7, 2024 13:404,15961,413,61532,486,0002,030,0002,314,240
25Jun 7, 2024 13:404,20663,214,06031,918,0002,992,0002,273,280
26Jun 7, 2024 13:404,24459,138,06533,214,0002,013,0002,273,280
27Jun 7, 2024 13:404,247116,349,50335,252,50602,236,416
28Jun 7, 2024 13:404,263106,352,80335,382,05502,240,512
29Jun 7, 2024 13:404,28195,327,09635,530,60802,240,512
30Jun 7, 2024 13:404,290126,101,41335,609,68202,256,896
31Jun 7, 2024 13:404,296110,933,20935,656,97902,240,512
32Jun 7, 2024 13:404,29697,345,99535,655,98302,236,416
33Jun 7, 2024 13:404,304104,348,98135,724,50602,248,704
34Jun 7, 2024 13:404,307123,096,91435,746,15102,236,416
35Jun 7, 2024 13:404,309119,217,86035,768,16202,240,512
36Jun 7, 2024 13:404,320116,022,50035,853,07002,244,608
37Jun 7, 2024 13:404,34664,506,44432,067,0004,008,000262,144
38Jun 7, 2024 13:404,39060,429,33234,411,0002,024,000176,128
39Jun 7, 2024 13:404,419104,154,14236,674,62502,240,512
40Jun 7, 2024 13:404,42567,042,77334,688,0002,040,0002,486,272
41Jun 7, 2024 13:404,42998,612,58136,758,35802,256,896
42Jun 7, 2024 13:404,44261,440,89431,889,0004,982,000253,952
43Jun 7, 2024 13:404,46568,925,50233,051,0004,006,000212,992
44Jun 7, 2024 13:404,46657,857,82432,061,0005,009,000315,392
45Jun 7, 2024 13:404,50357,918,23231,317,0006,061,0002,396,160
46Jun 7, 2024 13:404,57960,280,66132,008,0006,001,000409,600
47Jun 7, 2024 13:404,58463,976,46433,041,0005,006,0002,396,160
48Jun 7, 2024 13:404,60965,994,81232,214,0006,040,0002,273,280