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 28, 2024 13:44BenBenScore: 4,555Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 28, 2024 13:444,51431,022,66814,445,00002,392,064
2Jul 28, 2024 13:444,52732,588,89113,453,0001,034,0002,265,088
3Jul 28, 2024 13:444,53531,904,88214,512,00002,387,968
4Jul 28, 2024 13:444,54637,353,76813,507,0001,039,0002,265,088
5Jul 28, 2024 13:444,54735,721,92914,550,00002,265,088
6Jul 28, 2024 13:444,54831,481,87013,513,0001,039,0002,371,584
7Jul 28, 2024 13:444,55534,088,51014,575,00002,527,232
8Jul 28, 2024 13:444,56230,482,80013,556,0001,042,0002,392,064
9Jul 28, 2024 13:444,56831,030,68614,618,00002,265,088
10Jul 28, 2024 13:444,78978,197,47515,326,24802,289,664
11Jul 28, 2024 13:444,79495,218,23315,339,56002,293,760
12Jul 28, 2024 13:444,80983,842,53815,389,05902,281,472