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 listJul 21, 2023 16:37gchebanovgchebanovScore: 5,195Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 16:375,15838,804,96915,473,0001,031,0002,412,544
2Jul 21, 2023 16:375,16732,377,00415,502,0001,033,0002,285,568
3Jul 21, 2023 16:375,17138,949,18516,548,00002,285,568
4Jul 21, 2023 16:375,18032,451,55416,576,00002,404,352
5Jul 21, 2023 16:375,18738,918,07416,597,00002,404,352
6Jul 21, 2023 16:375,19544,118,65616,623,00002,285,568
7Jul 21, 2023 16:375,19534,668,68015,586,0001,039,0002,285,568
8Jul 21, 2023 16:375,20535,051,20216,655,00002,285,568
9Jul 21, 2023 16:375,26943,535,05614,877,0001,983,0002,285,568
10Jul 21, 2023 16:375,34486,377,48617,100,48302,301,952
11Jul 21, 2023 16:375,35086,425,22617,120,65602,306,048
12Jul 21, 2023 16:375,38664,974,38017,234,91702,297,856