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 22, 2021 17:25Andrey TsvetkovAndrey TsvetkovScore: 5,932Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2021 17:255,89831,599,20916,886,0001,986,0002,326,528
2May 22, 2021 17:255,90144,944,61318,883,00002,519,040
3May 22, 2021 17:255,90142,151,20617,890,000993,0002,527,232
4May 22, 2021 17:255,90149,384,45116,897,0001,987,0002,330,624
5May 22, 2021 17:255,90342,527,26915,907,0002,982,0002,527,232
6May 22, 2021 17:255,91646,894,97216,939,0001,992,0002,523,136
7May 22, 2021 17:255,91740,206,16416,941,0001,993,0002,326,528
8May 22, 2021 17:255,93242,605,93216,984,0001,998,0002,326,528
9May 22, 2021 17:255,94133,963,75315,009,0004,002,0002,523,136
10May 22, 2021 17:255,95081,246,26319,041,37002,228,224
11May 22, 2021 17:255,95496,908,14519,053,31002,236,416
12May 22, 2021 17:255,956100,029,58319,058,05102,232,320
13May 22, 2021 17:255,958108,748,00819,066,95302,240,512
14May 22, 2021 17:256,04890,353,64519,352,06802,236,416
15May 22, 2021 17:256,12476,206,10819,596,69002,224,128