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 listFeb 22, 2024 12:28Huy Duc LeHuy Duc LeScore: 5,517Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2024 12:285,47245,882,64616,481,0001,030,0002,293,760
2Feb 22, 2024 12:285,48138,449,09317,539,00002,514,944
3Feb 22, 2024 12:285,50047,995,32016,565,0001,035,0002,269,184
4Feb 22, 2024 12:285,51044,709,18117,633,00002,293,760
5Feb 22, 2024 12:285,51145,687,96117,636,00002,293,760
6Feb 22, 2024 12:285,51442,600,68216,607,0001,037,0002,375,680
7Feb 22, 2024 12:285,51736,100,70316,617,0001,038,0002,293,760
8Feb 22, 2024 12:285,52948,098,54516,652,0001,040,0002,367,488
9Feb 22, 2024 12:285,53143,662,71716,658,0001,041,0002,293,760
10Feb 22, 2024 12:285,66964,211,46618,141,86302,306,048
11Feb 22, 2024 12:285,74978,562,77318,395,24302,301,952
12Feb 22, 2024 12:285,76569,263,29118,447,16002,297,856