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 21, 2021 23:34Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 21, 2021 23:3400000Error: expected "53682912049605578 ", got "53682912049349678 "
2Dec 21, 2021 23:2033,146345,930,694275,113,17202,199,552
3Dec 21, 2021 23:0333,150365,526,628275,143,29202,220,032
4Dec 21, 2021 23:0333,162350,142,815275,244,46902,211,840
5Dec 21, 2021 23:2033,182340,000,579275,412,68002,215,936
6Dec 21, 2021 23:3733,186332,225,889275,443,83902,207,744
7Dec 21, 2021 23:0333,200342,383,493275,556,59802,220,032
8Dec 21, 2021 23:3633,217351,752,111275,698,52602,215,936
9Dec 21, 2021 23:2033,232338,518,859275,822,48702,207,744
10Dec 21, 2021 23:3633,255340,300,604276,014,09702,215,936
11Dec 21, 2021 23:3633,255347,146,505276,018,54302,224,128
12Dec 21, 2021 23:3733,259334,013,735276,048,37802,211,840
13Dec 21, 2021 23:3733,262338,725,899276,076,48502,211,840
14Dec 21, 2021 23:3435,201348,180,627292,170,24802,211,840
15Dec 21, 2021 23:3435,236350,195,466292,460,02102,211,840
16Dec 21, 2021 23:3435,258352,411,996292,639,37102,215,936