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 7, 2022 15:17Bernard TeoBernard TeoScore: 7,231Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 7, 2022 15:177,181135,211,21259,605,30002,285,568
2Sep 7, 2022 15:167,182129,162,93659,608,15002,277,376
3Sep 7, 2022 15:177,185130,644,50859,634,82202,273,280
4Sep 7, 2022 15:177,185125,583,72859,636,57902,277,376
5Sep 7, 2022 15:167,188122,484,71359,660,06602,277,376
6Sep 7, 2022 15:177,189124,035,19059,666,29902,277,376
7Sep 7, 2022 15:177,192126,857,09759,692,72102,281,472
8Sep 7, 2022 15:167,200138,107,75659,756,81202,289,664
9Sep 7, 2022 15:177,202131,961,19259,777,08402,289,664
10Sep 7, 2022 15:177,22081,260,63957,925,0001,997,0002,396,160
11Sep 7, 2022 15:177,22481,702,19257,958,0001,998,0002,273,280
12Sep 7, 2022 15:167,22582,647,91458,968,000999,0002,273,280
13Sep 7, 2022 15:167,22582,745,23258,968,000999,0002,273,280
14Sep 7, 2022 15:177,22680,993,32258,975,000999,0002,273,280
15Sep 7, 2022 15:167,22685,399,55657,974,0001,999,0002,396,160
16Sep 7, 2022 15:177,22785,248,54057,984,0001,999,0002,404,352
17Sep 7, 2022 15:167,22788,137,30458,987,000999,0002,396,160
18Sep 7, 2022 15:177,22882,738,25357,993,0001,999,0002,273,280
19Sep 7, 2022 15:167,22986,358,93259,004,0001,000,0002,404,352
20Sep 7, 2022 15:167,23086,378,08158,005,0002,000,0002,412,544
21Sep 7, 2022 15:167,23182,946,92259,014,0001,000,0002,400,256
22Sep 7, 2022 15:177,23185,506,72059,017,0001,000,0002,273,280
23Sep 7, 2022 15:177,23187,235,03658,019,0002,000,0002,273,280
24Sep 7, 2022 15:177,23384,116,19959,036,0001,000,0002,400,256
25Sep 7, 2022 15:177,23383,033,57558,037,0002,001,0002,273,280
26Sep 7, 2022 15:167,23487,574,25058,045,0002,001,0002,404,352
27Sep 7, 2022 15:167,23488,580,00159,044,0001,000,0002,404,352
28Sep 7, 2022 15:177,23483,885,72558,039,0002,001,0002,273,280
29Sep 7, 2022 15:177,23580,670,71258,050,0002,001,0002,396,160
30Sep 7, 2022 15:167,23684,814,58159,055,0001,000,0002,396,160
31Sep 7, 2022 15:177,23782,920,53658,069,0002,002,0002,404,352
32Sep 7, 2022 15:177,23779,877,18858,069,0002,002,0002,273,280
33Sep 7, 2022 15:177,23782,465,64758,065,0002,002,0002,404,352
34Sep 7, 2022 15:177,23784,437,00159,067,0001,001,0002,396,160
35Sep 7, 2022 15:167,23781,408,76858,067,0002,002,0002,392,064
36Sep 7, 2022 15:177,23881,051,36758,077,0002,002,0002,519,040
37Sep 7, 2022 15:177,24081,738,03659,090,0001,001,0002,273,280
38Sep 7, 2022 15:177,24087,035,64059,093,0001,001,0002,273,280
39Sep 7, 2022 15:177,24082,679,28358,088,0002,003,0002,273,280
40Sep 7, 2022 15:177,24180,482,44358,094,0002,003,0002,273,280
41Sep 7, 2022 15:177,24382,115,61859,112,0001,001,0002,404,352
42Sep 7, 2022 15:177,24384,241,73159,113,0001,001,0002,273,280
43Sep 7, 2022 15:177,24482,299,33759,127,0001,002,0002,510,848
44Sep 7, 2022 15:167,24587,313,55859,129,0001,002,0002,404,352
45Sep 7, 2022 15:177,27687,680,20559,381,0001,006,0002,519,040