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 listSep 29, 2021 23:24Mikhail ShirokovMikhail ShirokovScore: 5,898Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2021 23:245,73636,283,88717,335,0001,019,000294,912
2Sep 29, 2021 23:245,76240,069,52016,390,0002,048,000413,696
3Sep 29, 2021 23:245,76447,093,67416,395,0002,049,000413,696
4Sep 29, 2021 23:245,78342,250,61915,423,0003,084,000286,720
5Sep 29, 2021 23:245,82544,621,54517,604,0001,035,000413,696
6Sep 29, 2021 23:245,85045,060,69117,680,0001,040,0002,379,776
7Sep 29, 2021 23:245,89844,320,91615,894,0002,980,000413,696
8Sep 29, 2021 23:245,89844,902,11017,882,000993,0002,379,776
9Sep 29, 2021 23:245,90635,132,52218,899,00002,510,848
10Sep 29, 2021 23:245,94395,596,57819,018,24802,281,472
11Sep 29, 2021 23:245,96290,251,63419,079,96002,281,472
12Sep 29, 2021 23:245,984104,917,43219,147,66502,277,376