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:01Bernard TeoBernard TeoScore: 16,287Success
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:0116,258160,916,904132,943,0001,999,0002,273,280
2Dec 28, 2022 17:0116,260163,087,720133,955,000999,0002,273,280
3Dec 28, 2022 17:0116,267157,309,872133,012,0002,000,0002,273,280
4Dec 28, 2022 17:0116,270161,270,494133,043,0002,000,0002,404,352
5Dec 28, 2022 17:0116,270161,628,552134,041,0001,000,0002,396,160
6Dec 28, 2022 17:0116,272158,053,785134,058,0001,000,0002,400,256
7Dec 28, 2022 17:0116,272159,110,300133,055,0002,000,0002,273,280
8Dec 28, 2022 17:0116,273158,458,641133,063,0002,000,0002,273,280
9Dec 28, 2022 17:0116,278158,701,392133,108,0002,001,0002,273,280
10Dec 28, 2022 17:0116,280162,083,897133,126,0002,001,0002,273,280
11Dec 28, 2022 17:0116,280156,095,305134,124,0001,000,0002,400,256
12Dec 28, 2022 17:0116,287159,907,698134,180,0001,001,0002,273,280
13Dec 28, 2022 17:0116,287162,873,657134,177,0001,001,0002,404,352
14Dec 28, 2022 17:0116,292156,781,311134,224,0001,001,0002,273,280
15Dec 28, 2022 17:0116,293156,713,365134,229,0001,001,0002,273,280
16Dec 28, 2022 17:0116,294163,723,590134,238,0001,001,0002,273,280
17Dec 28, 2022 17:0116,296159,031,389134,253,0001,001,0002,392,064
18Dec 28, 2022 17:0116,315161,537,719135,416,00002,273,280
19Dec 28, 2022 17:0117,894207,478,723148,523,35702,273,280
20Dec 28, 2022 17:0117,901221,198,534148,576,36402,277,376
21Dec 28, 2022 17:0118,041216,464,626149,740,09902,277,376
22Dec 28, 2022 17:0118,046221,250,178149,780,00402,252,800
23Dec 28, 2022 17:0118,050204,674,882149,814,44102,285,568
24Dec 28, 2022 17:0118,058203,112,974149,877,88002,285,568