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 listApr 13, 2024 20:04Brian WardBrian WardScore: 5,724Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 13, 2024 20:045,66547,057,06716,113,0002,014,0002,355,200
2Apr 13, 2024 20:045,68832,902,80916,180,0002,022,0002,363,392
3Apr 13, 2024 20:045,70440,490,58816,226,0002,028,0002,289,664
4Apr 13, 2024 20:045,71339,730,02716,251,0002,031,0002,355,200
5Apr 13, 2024 20:045,71535,690,94718,287,00002,355,200
6Apr 13, 2024 20:045,72340,099,86517,298,0001,017,0002,461,696
7Apr 13, 2024 20:045,72443,827,36317,300,0001,017,0002,289,664
8Apr 13, 2024 20:045,72840,922,44518,328,00002,355,200
9Apr 13, 2024 20:045,73340,595,94817,325,0001,019,0002,359,296
10Apr 13, 2024 20:045,89088,345,84318,846,88002,228,224
11Apr 13, 2024 20:045,93589,463,89018,993,39402,236,416
12Apr 13, 2024 20:045,940100,710,38719,007,83002,232,320