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 listMar 10, 2024 11:55Andrey TsvetkovAndrey TsvetkovScore: 5,589Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 10, 2024 11:555,48240,313,29417,541,00002,342,912
2Mar 10, 2024 11:555,50937,910,35116,592,0001,037,0002,338,816
3Mar 10, 2024 11:555,51746,391,15917,653,00002,347,008
4Mar 10, 2024 11:555,51735,118,67716,616,0001,038,0002,342,912
5Mar 10, 2024 11:555,55935,878,10315,812,0001,976,0002,351,104
6Mar 10, 2024 11:555,58838,354,03115,894,0001,986,0002,338,816
7Mar 10, 2024 11:555,58946,799,50817,884,00002,338,816
8Mar 10, 2024 11:555,59047,193,14715,902,0001,987,0002,351,104
9Mar 10, 2024 11:555,60153,150,93815,933,0001,991,0002,347,008
10Mar 10, 2024 11:555,71588,561,78918,289,35702,187,264
11Mar 10, 2024 11:555,78288,971,18218,503,51002,195,456
12Mar 10, 2024 11:555,79577,051,99018,542,83902,179,072