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 16, 2022 01:54Yuriy 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 16, 2022 01:5400000Error: expected "53686501994529314 ", got "53686501994503714 "stderr
2Jul 16, 2022 01:5511,787120,240,14996,836,000998,0002,277,376
3Jul 16, 2022 01:5511,788122,873,61495,847,0001,996,0002,277,376
4Jul 16, 2022 01:5511,791121,024,99096,870,000998,0002,289,664
5Jul 16, 2022 01:5511,794129,561,85795,890,0001,997,0002,277,376
6Jul 16, 2022 01:5511,794121,312,34395,893,0001,997,0002,289,664
7Jul 16, 2022 01:5511,795126,640,18596,899,000998,0002,387,968
8Jul 16, 2022 01:5511,798125,842,00995,928,0001,998,0002,269,184
9Jul 16, 2022 01:5511,807121,990,14396,997,000999,0002,289,664
10Jul 16, 2022 01:5511,810122,085,37096,022,0002,000,0002,269,184
11Jul 16, 2022 01:5512,583166,280,567104,442,14102,273,280
12Jul 16, 2022 01:5512,584174,877,073104,445,15102,265,088
13Jul 16, 2022 01:5512,587157,661,188104,474,63402,269,184