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 16:50Jack FrigaardJack FrigaardScore: 4,858Success
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 16:504,80538,560,09713,326,0002,050,0002,273,280
2Jan 2, 2023 16:504,81235,546,83513,345,0002,053,0002,285,568
3Jan 2, 2023 16:504,81537,230,96614,381,0001,027,0002,269,184
4Jan 2, 2023 16:504,83533,445,33514,440,0001,031,0002,285,568
5Jan 2, 2023 16:504,84836,788,27314,480,0001,034,0002,269,184
6Jan 2, 2023 16:504,85432,959,44914,497,0001,035,0002,285,568
7Jan 2, 2023 16:504,85838,484,88314,508,0001,036,0002,285,568
8Jan 2, 2023 16:504,87344,544,25014,556,0001,039,0002,535,424
9Jan 2, 2023 16:504,88542,092,68914,591,0001,042,0002,269,184
10Jan 2, 2023 16:505,04790,427,42016,150,32002,297,856
11Jan 2, 2023 16:505,08380,254,11616,265,54002,179,072
12Jan 2, 2023 16:505,11176,870,62816,354,41702,306,048