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:14Bernard TeoBernard TeoScore: 7,251Success
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:137,23483,708,88158,044,0002,001,0002,273,280
2Sep 7, 2022 15:117,23788,118,58358,066,0002,002,0002,404,352
3Sep 7, 2022 15:137,23784,583,51060,065,00002,400,256
4Sep 7, 2022 15:117,24082,891,35459,093,0001,001,0002,265,088
5Sep 7, 2022 15:117,24081,234,55558,092,0002,003,0002,404,352
6Sep 7, 2022 15:137,24184,776,58758,095,0002,003,0002,396,160
7Sep 7, 2022 15:117,24282,132,96858,102,0002,003,0002,400,256
8Sep 7, 2022 15:147,24485,213,98258,119,0002,004,0002,273,280
9Sep 7, 2022 15:147,24486,540,35159,125,0001,002,0002,273,280
10Sep 7, 2022 15:147,24587,657,78759,134,0001,002,0002,408,448
11Sep 7, 2022 15:137,24582,593,71258,130,0002,004,0002,273,280
12Sep 7, 2022 15:147,24686,399,09658,134,0002,004,0002,396,160
13Sep 7, 2022 15:147,24680,542,93658,137,0002,004,0002,400,256
14Sep 7, 2022 15:117,24681,314,05159,139,0001,002,0002,408,448
15Sep 7, 2022 15:137,24881,561,06558,153,0002,005,0002,400,256
16Sep 7, 2022 15:137,24884,901,77758,153,0002,005,0002,408,448
17Sep 7, 2022 15:137,24881,718,99858,153,0002,005,0002,273,280
18Sep 7, 2022 15:147,24882,507,23259,159,0001,002,0002,400,256
19Sep 7, 2022 15:117,24986,761,95258,162,0002,005,0002,273,280
20Sep 7, 2022 15:117,25086,001,30758,172,0002,005,0002,404,352
21Sep 7, 2022 15:147,25189,041,47458,180,0002,006,0002,273,280
22Sep 7, 2022 15:147,25182,915,09759,184,0001,003,0002,404,352
23Sep 7, 2022 15:137,25186,585,79258,175,0002,006,0002,273,280
24Sep 7, 2022 15:137,25181,783,26159,178,0001,003,0002,273,280
25Sep 7, 2022 15:117,25185,180,10359,181,0001,003,0002,273,280
26Sep 7, 2022 15:137,25287,272,30158,184,0002,006,0002,273,280
27Sep 7, 2022 15:117,25380,185,30059,196,0001,003,0002,506,752
28Sep 7, 2022 15:147,25486,924,85258,202,0002,006,0002,396,160
29Sep 7, 2022 15:117,25489,805,76259,205,0001,003,0002,273,280
30Sep 7, 2022 15:117,25484,186,07659,207,0001,003,0002,273,280
31Sep 7, 2022 15:147,25680,133,79559,221,0001,003,0002,273,280
32Sep 7, 2022 15:147,25684,165,51960,221,00002,514,944
33Sep 7, 2022 15:137,25787,152,38959,229,0001,003,0002,273,280
34Sep 7, 2022 15:137,25984,785,25359,244,0001,004,0002,273,280
35Sep 7, 2022 15:147,26082,860,33360,255,00002,392,064
36Sep 7, 2022 15:117,26385,676,89359,277,0001,004,0002,400,256
37Sep 7, 2022 15:117,300135,426,55760,593,32902,273,280
38Sep 7, 2022 15:137,324122,752,46460,791,06602,281,472
39Sep 7, 2022 15:117,329130,013,36360,834,17702,273,280
40Sep 7, 2022 15:147,332131,174,68360,855,24502,289,664
41Sep 7, 2022 15:147,333124,988,52060,860,27902,285,568
42Sep 7, 2022 15:147,338123,177,97660,909,17702,285,568
43Sep 7, 2022 15:137,347123,965,24960,978,18802,277,376
44Sep 7, 2022 15:137,350124,810,14561,002,26302,273,280
45Sep 7, 2022 15:117,355141,049,37461,048,58602,281,472