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:40Bernard TeoBernard TeoScore: 6,991Success
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:406,97283,963,48355,869,0001,995,0002,404,352
2Sep 6, 2022 18:406,97681,621,80456,902,000998,0002,273,280
3Sep 6, 2022 18:406,97680,959,31655,906,0001,996,0002,396,160
4Sep 6, 2022 18:406,98088,558,29355,935,0001,997,0002,273,280
5Sep 6, 2022 18:406,98184,388,20255,943,0001,997,0002,396,160
6Sep 6, 2022 18:406,98279,588,72555,954,0001,998,0002,396,160
7Sep 6, 2022 18:406,98285,367,69356,951,000999,0002,273,280
8Sep 6, 2022 18:406,98381,469,75755,960,0001,998,0002,273,280
9Sep 6, 2022 18:406,98382,130,66056,962,000999,0002,400,256
10Sep 6, 2022 18:406,98484,975,27255,967,0001,998,0002,273,280
11Sep 6, 2022 18:406,98582,048,74355,979,0001,999,0002,273,280
12Sep 6, 2022 18:406,98681,751,85356,983,000999,0002,396,160
13Sep 6, 2022 18:406,98681,318,25156,982,000999,0002,510,848
14Sep 6, 2022 18:406,98883,518,73057,002,0001,000,0002,273,280
15Sep 6, 2022 18:406,98985,317,05956,009,0002,000,0002,273,280
16Sep 6, 2022 18:406,99183,261,53556,023,0002,000,0002,273,280
17Sep 6, 2022 18:406,99384,887,17956,039,0002,001,0002,273,280
18Sep 6, 2022 18:406,99376,109,65256,041,0002,001,0002,273,280
19Sep 6, 2022 18:406,99382,916,85756,042,0002,001,0002,404,352
20Sep 6, 2022 18:406,99482,011,23156,053,0002,001,0002,404,352
21Sep 6, 2022 18:407,00185,708,05156,105,0002,003,0002,273,280
22Sep 6, 2022 18:407,00485,058,61656,131,0002,004,0002,273,280
23Sep 6, 2022 18:407,00683,569,70956,145,0002,005,0002,273,280
24Sep 6, 2022 18:407,23687,498,91558,054,0002,001,0002,273,280
25Sep 6, 2022 18:407,877135,006,08265,378,95902,273,280
26Sep 6, 2022 18:407,879151,351,33665,392,46302,281,472
27Sep 6, 2022 18:407,978116,954,65466,215,89902,281,472
28Sep 6, 2022 18:408,043142,145,25066,757,21602,277,376
29Sep 6, 2022 18:408,073131,838,43267,002,02902,289,664
30Sep 6, 2022 18:408,109139,593,96667,305,04302,277,376