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 21:51Jack FrigaardJack FrigaardScore: 4,873Success
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 21:514,80332,894,60214,344,0001,024,0002,285,568
2Jan 2, 2023 21:514,80835,200,68114,361,0001,025,0002,527,232
3Jan 2, 2023 21:514,81632,459,48813,357,0002,054,0002,269,184
4Jan 2, 2023 21:514,82030,443,49814,397,0001,028,0002,285,568
5Jan 2, 2023 21:514,82331,089,48414,404,0001,028,0002,285,568
6Jan 2, 2023 21:514,83832,965,57314,448,0001,032,0002,285,568
7Jan 2, 2023 21:514,87336,499,32214,555,0001,039,0002,285,568
8Jan 2, 2023 21:514,87841,387,80015,608,00002,285,568
9Jan 2, 2023 21:514,88732,354,15814,597,0001,042,0002,285,568
10Jan 2, 2023 21:515,07471,998,99316,237,55202,297,856
11Jan 2, 2023 21:515,08193,972,92516,257,61702,301,952
12Jan 2, 2023 21:515,10164,667,04416,323,93602,293,760