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 3, 2023 22:10Jack FrigaardJack FrigaardScore: 4,819Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2023 22:104,78343,999,67113,264,0002,040,0002,531,328
2Jan 3, 2023 22:104,79044,244,68013,285,0002,043,0002,289,664
3Jan 3, 2023 22:104,80132,479,49513,316,0002,048,0002,289,664
4Jan 3, 2023 22:104,80432,995,83013,323,0002,049,0002,269,184
5Jan 3, 2023 22:104,80736,646,50713,332,0002,051,0002,289,664
6Jan 3, 2023 22:104,81332,587,95414,375,0001,026,0002,285,568
7Jan 3, 2023 22:104,81938,298,49315,422,00002,514,944
8Jan 3, 2023 22:104,84239,089,79114,461,0001,032,0002,289,664
9Jan 3, 2023 22:104,84637,707,23815,508,00002,289,664
10Jan 3, 2023 22:105,02394,142,31016,073,48102,297,856
11Jan 3, 2023 22:105,03788,924,27916,119,64902,301,952
12Jan 3, 2023 22:105,05289,826,91716,165,17902,293,760