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 listJul 30, 2022 15:47Yuriy 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
1Jul 30, 2022 15:4800000Error: expected "53687309345474471 ", got "53687283489474471 "
2Jul 30, 2022 15:507,594126,790,21763,028,62102,260,992
3Jul 30, 2022 15:507,610132,710,23263,165,90802,228,224
4Jul 30, 2022 15:497,652129,817,42863,508,66002,211,840
5Jul 30, 2022 15:497,652127,531,31563,514,59002,174,976
6Jul 30, 2022 15:497,711144,102,96563,998,67702,224,128
7Jul 30, 2022 15:477,720129,783,90564,076,33402,240,512
8Jul 30, 2022 15:507,771125,210,48064,500,61202,236,416
9Jul 30, 2022 15:477,779130,548,78464,566,06802,207,744
10Jul 30, 2022 15:477,81687,486,04159,883,0004,990,0002,285,568
11Jul 30, 2022 15:477,853125,582,99865,181,67302,211,840
12Jul 30, 2022 15:477,86294,536,13061,236,0004,015,0002,367,488
13Jul 30, 2022 15:477,92491,638,49262,781,0002,989,0002,318,336
14Jul 30, 2022 15:477,95188,358,36960,996,0004,999,0002,416,640
15Jul 30, 2022 15:477,95294,165,42661,003,0005,000,0002,273,280
16Jul 30, 2022 15:477,96090,402,05663,069,0003,003,0002,379,776
17Jul 30, 2022 15:478,00190,365,24461,377,0005,030,0002,457,600
18Jul 30, 2022 15:478,19794,472,13266,033,0002,001,0002,318,336
19Jul 30, 2022 15:478,23596,340,30461,315,0007,036,0002,310,144