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 14, 2022 17:11Bernard TeoBernard TeoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 14, 2022 17:1100000Error: expected "53691632157794175 ", got "53691632157791615"
2Sep 14, 2022 17:116,37878,541,51650,939,0001,997,0002,400,256
3Sep 14, 2022 17:116,37982,937,76250,947,0001,997,0002,273,280
4Sep 14, 2022 17:116,38280,229,13050,970,0001,998,0002,273,280
5Sep 14, 2022 17:116,38375,560,63550,979,0001,999,0002,273,280
6Sep 14, 2022 17:116,38375,441,37050,981,0001,999,0002,396,160
7Sep 14, 2022 17:116,38484,022,77851,990,000999,0002,273,280
8Sep 14, 2022 17:116,38674,035,77353,007,00002,400,256
9Sep 14, 2022 17:116,38679,097,20751,003,0002,000,0002,400,256
10Sep 14, 2022 17:116,38876,389,30552,019,0001,000,0002,273,280
11Sep 14, 2022 17:116,38976,110,94652,032,0001,000,0002,273,280
12Sep 14, 2022 17:116,39078,895,36153,038,00002,273,280
13Sep 14, 2022 17:116,39074,495,81451,040,0002,001,0002,273,280
14Sep 14, 2022 17:116,39078,912,84851,034,0002,001,0002,273,280
15Sep 14, 2022 17:116,39274,921,87651,052,0002,002,0002,408,448
16Sep 14, 2022 17:116,39273,144,20852,053,0001,001,0002,273,280
17Sep 14, 2022 17:116,39381,046,94051,060,0002,002,0002,400,256
18Sep 14, 2022 17:116,39381,659,21853,063,00002,400,256
19Sep 14, 2022 17:116,39375,460,24851,056,0002,002,0002,404,352
20Sep 14, 2022 17:116,39375,968,18851,056,0002,002,0002,404,352
21Sep 14, 2022 17:116,39578,333,19451,074,0002,002,0002,408,448
22Sep 14, 2022 17:116,39778,333,19651,091,0002,003,0002,400,256
23Sep 14, 2022 17:116,39975,413,72851,111,0002,004,0002,510,848
24Sep 14, 2022 17:116,40177,520,42052,130,0001,002,0002,387,968
25Sep 14, 2022 17:116,41780,593,39952,253,0001,004,0002,408,448
26Sep 14, 2022 17:116,540125,873,40454,284,67302,281,472
27Sep 14, 2022 17:116,542116,092,42354,300,64902,281,472
28Sep 14, 2022 17:116,542111,477,95254,302,16802,277,376
29Sep 14, 2022 17:116,545126,985,05854,320,93502,277,376
30Sep 14, 2022 17:116,545120,028,45954,326,20502,285,568
31Sep 14, 2022 17:106,546110,462,64954,329,98602,269,184
32Sep 14, 2022 17:116,548118,970,15654,351,61502,277,376
33Sep 14, 2022 17:106,551120,766,40754,375,10202,281,472
34Sep 14, 2022 17:116,552122,908,38254,381,77702,277,376
35Sep 14, 2022 17:106,568125,331,62354,513,07402,277,376
36Sep 14, 2022 17:116,589128,943,91454,692,15602,273,280
37Sep 14, 2022 17:116,628121,062,35255,012,90702,277,376