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 listJan 2, 2023 14:55Jack FrigaardJack FrigaardScore: 5,927Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 14:555,89445,608,23617,870,000992,0002,285,568
2Jan 2, 2023 14:555,89443,907,64116,877,0001,985,0002,273,280
3Jan 2, 2023 14:555,89751,849,05718,870,00002,527,232
4Jan 2, 2023 14:555,90149,930,63716,896,0001,987,0002,285,568
5Jan 2, 2023 14:555,91942,709,96816,948,0001,993,0002,523,136
6Jan 2, 2023 14:555,92643,229,68116,966,0001,996,0002,285,568
7Jan 2, 2023 14:555,92741,014,64216,969,0001,996,0002,285,568
8Jan 2, 2023 14:555,94841,228,13017,029,0002,003,0002,355,200
9Jan 2, 2023 14:555,94936,857,86917,034,0002,004,0002,285,568
10Jan 2, 2023 14:556,02774,074,76119,286,68902,301,952
11Jan 2, 2023 14:556,11895,160,69219,576,79402,293,760
12Jan 2, 2023 14:556,151106,327,36219,684,49002,285,568