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:58BenBenScore: 4,565Success
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:584,52335,563,37514,473,00002,387,968
2Jul 28, 2024 12:584,53936,583,59714,525,00002,265,088
3Jul 28, 2024 12:584,54030,890,24313,491,0001,037,0002,265,088
4Jul 28, 2024 12:584,54536,814,63314,543,00002,396,160
5Jul 28, 2024 12:584,55630,531,18713,539,0001,041,0002,387,968
6Jul 28, 2024 12:584,56143,795,19013,554,0001,042,0002,392,064
7Jul 28, 2024 12:584,56530,490,32513,566,0001,043,0002,265,088
8Jul 28, 2024 12:584,56731,918,09714,613,00002,265,088
9Jul 28, 2024 12:584,56843,857,15214,618,00002,387,968
10Jul 28, 2024 12:584,78456,955,85215,307,97002,289,664
11Jul 28, 2024 12:584,79698,330,94215,345,73802,289,664
12Jul 28, 2024 12:584,82692,532,92115,443,03502,277,376