Count uint8 Sergey Svistunov

Count the number of bytes equal to 127 in a binary stream as fast as possible.

Input: 250 000 000 uint8 values in binary on STDIN.

Output: The count of elements equal to 127, printed as a decimal string.

Back to listJul 21, 2023 11:10gchebanovgchebanovScore: 5,531Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 11:105,48237,525,14517,542,00002,387,968
2Jul 21, 2023 11:105,48836,997,43917,560,00002,265,088
3Jul 21, 2023 11:105,48941,011,45816,532,0001,033,0002,387,968
4Jul 21, 2023 11:105,50138,906,40717,603,00002,396,160
5Jul 21, 2023 11:105,51938,857,94917,661,00002,265,088
6Jul 21, 2023 11:105,52742,856,33017,687,00002,265,088
7Jul 21, 2023 11:105,53144,955,07617,700,00002,265,088
8Jul 21, 2023 11:105,53744,557,62317,717,00002,494,464
9Jul 21, 2023 11:105,58744,371,48616,884,000993,0002,265,088
10Jul 21, 2023 11:105,70392,235,76118,248,36002,277,376
11Jul 21, 2023 11:105,73996,212,00318,364,59302,277,376
12Jul 21, 2023 11:105,74595,037,89718,383,94102,277,376