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 listSep 6, 2022 18:31Bernard TeoBernard TeoScore: 6,980Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 6, 2022 18:316,96882,052,91157,838,00002,273,280
2Sep 6, 2022 18:316,96882,176,23056,818,0001,014,0002,273,280
3Sep 6, 2022 18:316,96881,787,02556,836,000997,0002,273,280
4Sep 6, 2022 18:316,96982,315,55455,848,0001,994,0002,400,256
5Sep 6, 2022 18:316,97387,731,54555,884,0001,995,0002,404,352
6Sep 6, 2022 18:316,97382,681,96155,880,0001,995,0002,273,280
7Sep 6, 2022 18:316,97379,241,83856,878,000997,0002,273,280
8Sep 6, 2022 18:316,97482,682,26056,889,000998,0002,273,280
9Sep 6, 2022 18:316,97581,090,51555,898,0001,996,0002,396,160
10Sep 6, 2022 18:316,97878,609,02655,924,0001,997,0002,273,280
11Sep 6, 2022 18:316,97881,831,09756,921,000998,0002,400,256
12Sep 6, 2022 18:316,97879,457,40855,920,0001,997,0002,400,256
13Sep 6, 2022 18:316,97984,876,75156,930,000998,0002,510,848
14Sep 6, 2022 18:316,97982,203,61756,926,000998,0002,273,280
15Sep 6, 2022 18:316,98078,471,32055,941,0001,997,0002,392,064
16Sep 6, 2022 18:316,98082,791,76355,939,0001,997,0002,387,968
17Sep 6, 2022 18:316,98184,106,12856,941,000998,0002,273,280
18Sep 6, 2022 18:316,98385,279,04755,959,0001,998,0002,273,280
19Sep 6, 2022 18:316,98481,061,79856,971,000999,0002,273,280
20Sep 6, 2022 18:316,99183,541,65658,028,00002,273,280
21Sep 6, 2022 18:316,99980,690,50357,088,0001,001,0002,404,352
22Sep 6, 2022 18:317,18687,672,01158,632,0001,010,0002,400,256
23Sep 6, 2022 18:317,783125,878,32564,601,79002,277,376
24Sep 6, 2022 18:317,874134,688,71065,354,71302,277,376
25Sep 6, 2022 18:317,971122,709,53266,163,34202,273,280
26Sep 6, 2022 18:318,034137,521,09966,683,02902,273,280
27Sep 6, 2022 18:318,048142,526,40866,799,55602,289,664
28Sep 6, 2022 18:318,055128,015,99166,856,45502,277,376
29Sep 6, 2022 18:3136,1781,806,363,28657,436,000242,845,000256,151,552
30Sep 6, 2022 18:3137,1181,867,728,62159,989,000248,092,000263,561,216