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 listMay 16, 2023 23:47Martin StensgårdMartin StensgårdScore: 5,626Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2023 23:475,58744,558,37716,885,000993,0002,527,232
2May 16, 2023 23:475,60842,971,38915,951,0001,993,0002,285,568
3May 16, 2023 23:475,61140,170,85515,960,0001,995,0002,519,040
4May 16, 2023 23:475,61143,774,45715,960,0001,995,0002,285,568
5May 16, 2023 23:475,61539,606,85316,971,000998,0002,285,568
6May 16, 2023 23:475,62340,327,40016,993,000999,0002,285,568
7May 16, 2023 23:475,62636,621,68916,004,0002,000,0002,342,912
8May 16, 2023 23:475,63442,124,84116,026,0002,003,0002,285,568
9May 16, 2023 23:475,66338,146,52616,109,0002,013,0002,285,568
10May 16, 2023 23:475,77086,434,44018,463,06002,289,664
11May 16, 2023 23:475,80179,859,05418,563,16502,297,856
12May 16, 2023 23:475,80986,595,51718,589,71602,285,568