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 28, 2024 12:44BenBenScore: 5,127Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 28, 2024 12:445,08741,326,97514,244,0002,034,0002,265,088
2Jul 28, 2024 12:445,09341,120,47114,261,0002,037,0002,387,968
3Jul 28, 2024 12:445,11832,246,79716,379,00002,387,968
4Jul 28, 2024 12:445,11932,516,59415,358,0001,023,0002,265,088
5Jul 28, 2024 12:445,11935,346,13415,359,0001,023,0002,527,232
6Jul 28, 2024 12:445,12035,824,36316,385,00002,396,160
7Jul 28, 2024 12:445,12749,824,74715,382,0001,025,0002,265,088
8Jul 28, 2024 12:445,13838,350,03215,416,0001,027,0002,502,656
9Jul 28, 2024 12:445,15037,802,04416,481,00002,265,088
10Jul 28, 2024 12:445,35978,378,83517,150,29102,256,896
11Jul 28, 2024 12:445,36685,361,80217,171,55902,260,992
12Jul 28, 2024 12:445,37276,636,45817,191,66102,265,088