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 5, 2024 15:37GraceGraceScore: 5,794Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2024 15:375,69670,366,85445,269,0002,011,0002,342,912
2Jun 5, 2024 15:375,70768,620,02144,345,0003,023,0002,490,368
3Jun 5, 2024 15:375,71268,306,12245,390,0002,017,0002,482,176
4Jun 5, 2024 15:375,71474,590,72546,418,0001,009,0002,482,176
5Jun 5, 2024 15:375,71971,165,84945,445,0002,019,0002,314,240
6Jun 5, 2024 15:375,72768,255,94445,510,0002,022,0002,482,176
7Jun 5, 2024 15:375,72869,943,67847,541,00002,347,008
8Jun 5, 2024 15:375,74172,379,96447,651,00002,273,280
9Jun 5, 2024 15:375,76274,148,75045,833,0001,992,0002,273,280
10Jun 5, 2024 15:375,76274,826,35246,825,000996,0002,494,464
11Jun 5, 2024 15:375,76376,154,00844,841,0002,989,0002,273,280
12Jun 5, 2024 15:375,76374,142,58545,840,0001,993,0002,478,080
13Jun 5, 2024 15:375,76874,399,40144,880,0002,992,0002,351,104
14Jun 5, 2024 15:375,77771,238,29645,953,0001,997,0002,273,280
15Jun 5, 2024 15:375,78868,654,30246,036,0002,001,0002,273,280
16Jun 5, 2024 15:375,79473,017,49045,088,0003,005,0002,490,368
17Jun 5, 2024 15:375,81674,346,34047,269,0001,005,0002,486,272
18Jun 5, 2024 15:375,81772,073,33946,274,0002,011,0002,273,280
19Jun 5, 2024 15:375,82171,065,88945,297,0003,019,0002,265,088
20Jun 5, 2024 15:375,82173,890,24245,298,0003,019,0002,273,280
21Jun 5, 2024 15:375,85073,847,50546,535,0002,023,0002,494,464
22Jun 5, 2024 15:375,86477,705,99047,656,0001,013,0002,482,176
23Jun 5, 2024 15:375,921115,548,55349,142,04902,236,416
24Jun 5, 2024 15:375,940131,964,06149,305,42402,244,608
25Jun 5, 2024 15:375,945128,539,57049,343,50502,232,320
26Jun 5, 2024 15:375,977123,531,70149,605,88902,236,416
27Jun 5, 2024 15:375,98377,924,15948,648,0001,013,0002,469,888
28Jun 5, 2024 15:375,993107,549,26549,744,80902,371,584
29Jun 5, 2024 15:376,00474,253,27547,840,0001,993,0002,273,280
30Jun 5, 2024 15:376,222119,452,49951,641,71002,236,416