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 listJan 2, 2023 17:24Hal FHal FScore: 4,872Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 17:244,82035,296,82714,395,0001,028,0002,281,472
2Jan 2, 2023 17:244,83335,038,46115,464,00002,277,376
3Jan 2, 2023 17:244,84542,495,22414,471,0001,033,0002,527,232
4Jan 2, 2023 17:244,85134,472,16815,523,00002,289,664
5Jan 2, 2023 17:244,86242,522,72114,522,0001,037,0002,289,664
6Jan 2, 2023 17:244,87137,426,36514,549,0001,039,0002,289,664
7Jan 2, 2023 17:244,87244,899,83514,552,0001,039,0002,289,664
8Jan 2, 2023 17:244,87636,811,76815,602,00002,289,664
9Jan 2, 2023 17:244,90335,544,99614,643,0001,045,0002,277,376
10Jan 2, 2023 17:245,03990,657,43216,124,08602,293,760
11Jan 2, 2023 17:245,06180,777,88216,196,17302,297,856
12Jan 2, 2023 17:245,08471,123,41316,269,68002,297,856