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 4, 2023 07:38Jörn HorstmannJörn HorstmannScore: 5,921Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2023 07:385,73340,284,32018,345,00002,363,392
2Jul 4, 2023 07:385,75235,463,43318,407,00002,371,584
3Jul 4, 2023 07:385,76547,853,05318,449,00002,289,664
4Jul 4, 2023 07:385,78837,609,03518,520,0000266,240
5Jul 4, 2023 07:385,81243,725,15918,598,0000188,416
6Jul 4, 2023 07:385,83347,331,47817,628,0001,036,000262,144
7Jul 4, 2023 07:385,92144,573,43516,953,0001,994,0002,289,664
8Jul 4, 2023 07:385,94969,542,17819,037,43302,240,512
9Jul 4, 2023 07:385,95688,049,62719,058,94202,236,416
10Jul 4, 2023 07:385,95763,244,91519,061,37502,240,512
11Jul 4, 2023 07:386,39749,864,81319,446,0001,023,0002,351,104
12Jul 4, 2023 07:387,32250,561,77620,375,0003,056,0002,351,104