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 26, 2024 23:55kyle-basiskyle-basisError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 26, 2024 23:5500000Error: expected "977787 ", got "977788 "stderr
2Jul 26, 2024 23:555,60744,284,32416,945,000996,0002,428,928
3Jul 26, 2024 23:555,60936,621,13616,953,000997,0002,273,280
4Jul 26, 2024 23:555,63244,495,21016,021,0002,002,0002,273,280
5Jul 26, 2024 23:555,65340,333,16017,084,0001,004,0002,433,024
6Jul 26, 2024 23:555,65737,348,93617,096,0001,005,0002,428,928
7Jul 26, 2024 23:555,68441,252,79517,179,0001,010,0002,285,568
8Jul 26, 2024 23:555,68773,789,74418,198,14202,174,976
9Jul 26, 2024 23:555,68745,021,26417,187,0001,011,0002,433,024
10Jul 26, 2024 23:555,69644,711,39317,215,0001,012,0002,535,424
11Jul 26, 2024 23:555,71770,858,65118,293,76702,179,072
12Jul 26, 2024 23:555,71941,352,39218,301,00002,437,120
13Jul 26, 2024 23:555,74671,130,20318,386,50202,179,072