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 listNov 10, 2023 10:49matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 10, 2023 10:4800000Error: expected "53690151317969305 ", got "53690125717969305 "stderr
2Nov 10, 2023 10:497,341120,160,60360,929,75502,244,608
3Nov 10, 2023 10:497,398133,460,73461,406,09802,240,512
4Nov 10, 2023 10:497,419125,568,03661,578,33102,240,512
5Nov 10, 2023 10:497,59587,338,32061,037,0002,001,0002,523,136
6Nov 10, 2023 10:497,61686,674,77162,210,0001,003,0002,330,624
7Nov 10, 2023 10:497,73791,382,73263,216,0001,003,0002,523,136
8Nov 10, 2023 10:497,78190,648,39463,574,0001,009,0002,523,136
9Nov 10, 2023 10:497,82387,983,39762,935,0001,997,0002,523,136
10Nov 10, 2023 10:497,86885,090,05063,294,0002,009,0002,514,944
11Nov 10, 2023 10:497,87697,285,48965,370,00002,478,080
12Nov 10, 2023 10:497,95289,635,29364,000,0002,000,0002,523,136
13Nov 10, 2023 10:497,97692,025,74564,192,0002,006,0002,523,136
14Nov 10, 2023 10:497,97791,332,38064,207,0002,006,0002,514,944
15Nov 10, 2023 10:497,99997,156,37164,377,0002,011,0002,514,944
16Nov 10, 2023 10:498,01386,828,54565,505,0001,007,0002,523,136