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 listDec 28, 2022 17:10Bernard TeoBernard TeoScore: 7,204Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 17:107,18089,953,27358,580,0001,010,0002,273,280
2Dec 28, 2022 17:107,18188,563,81858,589,0001,010,0002,400,256
3Dec 28, 2022 17:107,18287,824,23758,598,0001,010,0002,273,280
4Dec 28, 2022 17:107,18393,078,73258,607,0001,010,0002,273,280
5Dec 28, 2022 17:107,18388,793,66158,613,0001,010,0002,273,280
6Dec 28, 2022 17:107,18486,990,13158,614,0001,010,0002,273,280
7Dec 28, 2022 17:107,18585,020,54358,622,0001,010,0002,273,280
8Dec 28, 2022 17:107,20486,113,82958,800,000996,0002,400,256
9Dec 28, 2022 17:107,20485,640,23158,795,000996,0002,273,280
10Dec 28, 2022 17:107,20585,336,87459,803,00002,273,280
11Dec 28, 2022 17:107,20686,333,48458,815,000996,0002,396,160
12Dec 28, 2022 17:107,20784,858,41659,816,00002,273,280
13Dec 28, 2022 17:107,353116,818,62061,032,43902,273,280
14Dec 28, 2022 17:107,354118,305,05361,041,30602,281,472
15Dec 28, 2022 17:107,492124,327,41762,186,95502,281,472