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:57GraceGraceScore: 4,157Success
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:574,05864,426,29632,664,0001,020,0002,486,272
2Jun 7, 2024 13:574,07561,274,27931,834,0001,989,0002,478,080
3Jun 7, 2024 13:574,07662,817,88331,842,0001,990,0002,273,280
4Jun 7, 2024 13:574,07662,539,41430,847,0002,985,0002,486,272
5Jun 7, 2024 13:574,07759,482,96630,856,0002,986,0002,273,280
6Jun 7, 2024 13:574,07764,499,27730,852,0002,985,0002,482,176
7Jun 7, 2024 13:574,07764,500,10631,845,0001,990,0002,420,736
8Jun 7, 2024 13:574,09260,113,20830,970,0002,997,0002,273,280
9Jun 7, 2024 13:574,09254,012,91730,969,0002,997,0002,490,368
10Jun 7, 2024 13:574,09356,532,84130,977,0002,997,0002,482,176
11Jun 7, 2024 13:574,09364,063,56931,972,0001,998,0002,273,280
12Jun 7, 2024 13:574,10658,586,04932,078,0002,004,0002,490,368
13Jun 7, 2024 13:574,11258,221,49331,117,0003,011,0002,494,464
14Jun 7, 2024 13:574,12456,281,43531,209,0003,020,0002,482,176
15Jun 7, 2024 13:574,13455,407,80431,285,0003,027,0002,437,120
16Jun 7, 2024 13:574,14057,416,93332,341,0002,021,0002,273,280
17Jun 7, 2024 13:574,15764,627,34732,530,0001,971,0002,273,280
18Jun 7, 2024 13:574,19764,772,01531,850,0002,985,0002,273,280
19Jun 7, 2024 13:574,20560,288,56631,912,0002,991,0002,494,464
20Jun 7, 2024 13:574,21761,915,10032,004,0003,000,0002,273,280
21Jun 7, 2024 13:574,22960,540,89933,096,0002,005,0002,490,368
22Jun 7, 2024 13:574,250109,460,22835,273,90202,244,608
23Jun 7, 2024 13:574,251105,453,62735,283,82102,244,608
24Jun 7, 2024 13:574,266105,020,49235,411,46902,248,704
25Jun 7, 2024 13:574,273116,911,58035,463,87402,244,608
26Jun 7, 2024 13:574,27399,984,43235,462,45002,236,416
27Jun 7, 2024 13:584,276100,393,05235,490,87602,244,608
28Jun 7, 2024 13:574,30592,109,26635,734,23602,240,512
29Jun 7, 2024 13:574,34497,881,01436,055,75302,240,512
30Jun 7, 2024 13:584,412102,560,01336,618,73702,252,800
31Jun 7, 2024 13:584,42797,041,13236,747,15402,240,512
32Jun 7, 2024 13:574,453106,126,51936,961,48802,236,416
33Jun 7, 2024 13:574,51598,602,24337,473,50502,248,704