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 22, 2024 23:27Joad NacerJoad NacerScore: 4,861Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 22, 2024 23:274,84438,233,72514,468,0001,033,0002,289,664
2Jul 22, 2024 23:274,84432,905,90815,501,00002,269,184
3Jul 22, 2024 23:274,84531,065,38714,472,0001,033,0002,289,664
4Jul 22, 2024 23:274,85338,352,85414,494,0001,035,0002,289,664
5Jul 22, 2024 23:274,85439,158,31214,497,0001,035,0002,281,472
6Jul 22, 2024 23:274,85440,067,58714,498,0001,035,0002,289,664
7Jul 22, 2024 23:274,86134,926,69314,519,0001,037,0002,273,280
8Jul 22, 2024 23:274,87143,939,12514,548,0001,039,0002,265,088
9Jul 22, 2024 23:274,90745,770,81414,656,0001,046,0002,289,664
10Jul 22, 2024 23:275,09181,998,79416,290,12602,297,856
11Jul 22, 2024 23:275,12576,857,35216,400,05102,310,144
12Jul 22, 2024 23:275,15379,060,29416,490,00102,301,952