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:19Bernard TeoBernard TeoScore: 7,236Success
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:187,185130,981,97259,634,55402,277,376
2Sep 7, 2022 15:197,188131,115,05859,659,51802,289,664
3Sep 7, 2022 15:187,195145,251,62759,715,98502,281,472
4Sep 7, 2022 15:197,202129,520,82359,779,00402,273,280
5Sep 7, 2022 15:197,205118,465,98359,797,48202,281,472
6Sep 7, 2022 15:197,22084,941,87158,925,000998,0002,273,280
7Sep 7, 2022 15:187,22579,469,46658,966,000999,0002,273,280
8Sep 7, 2022 15:187,225134,323,85859,965,07002,277,376
9Sep 7, 2022 15:197,22781,344,26557,986,0001,999,0002,404,352
10Sep 7, 2022 15:197,22787,050,80557,987,0001,999,0002,404,352
11Sep 7, 2022 15:197,22986,968,98658,002,0002,000,0002,273,280
12Sep 7, 2022 15:187,22984,578,10858,001,0002,000,0002,396,160
13Sep 7, 2022 15:187,23181,790,44858,014,0002,000,0002,273,280
14Sep 7, 2022 15:197,23385,663,29658,037,0002,001,0002,273,280
15Sep 7, 2022 15:197,23484,888,14859,042,0001,000,0002,396,160
16Sep 7, 2022 15:197,23684,651,26159,056,0001,000,0002,400,256
17Sep 7, 2022 15:187,23779,058,21459,062,0001,001,0002,412,544
18Sep 7, 2022 15:187,23783,472,38858,061,0002,002,0002,392,064
19Sep 7, 2022 15:197,23782,312,39458,065,0002,002,0002,510,848
20Sep 7, 2022 15:187,23884,624,10458,071,0002,002,0002,273,280
21Sep 7, 2022 15:187,24091,853,25559,088,0001,001,0002,273,280
22Sep 7, 2022 15:187,24084,623,82358,090,0002,003,0002,404,352
23Sep 7, 2022 15:197,24282,875,22558,103,0002,003,0002,273,280
24Sep 7, 2022 15:187,24281,445,68258,109,0002,003,0002,392,064
25Sep 7, 2022 15:197,24487,180,58458,120,0002,004,0002,404,352
26Sep 7, 2022 15:187,24580,946,32559,131,0001,002,0002,510,848
27Sep 7, 2022 15:197,24681,417,65159,138,0001,002,0002,269,184
28Sep 7, 2022 15:187,24780,434,08959,144,0001,002,0002,273,280
29Sep 7, 2022 15:187,24982,437,99259,168,0001,002,0002,273,280
30Sep 7, 2022 15:197,25081,719,09558,169,0002,005,0002,273,280