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 27, 2021 16:51Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2021 16:5700000exit with code 1: alg:1 fwd:4864 mode:3 time:14179
2May 27, 2021 16:5400000exit with code 1: alg:1 fwd:768 mode:2 time:14606
3May 27, 2021 16:5300000exit with code 1: alg:1 fwd:768 mode:1 time:14608
4May 27, 2021 16:5300000exit with code 1: alg:1 fwd:640 mode:0 time:14796
5May 27, 2021 16:5200000exit with code 1: alg:1 fwd:6656 mode:-1 time:15453
6May 27, 2021 16:515,03332,343,04014,092,0002,013,0002,392,064
7May 27, 2021 16:515,04833,340,37815,145,0001,009,0002,265,088
8May 27, 2021 16:515,05150,486,38614,143,0002,020,0002,265,088
9May 27, 2021 16:515,05741,881,05915,171,0001,011,0002,265,088
10May 27, 2021 16:515,05844,372,28814,162,0002,023,0002,265,088
11May 27, 2021 16:515,06634,388,90215,197,0001,013,0002,396,160
12May 27, 2021 16:515,07241,029,28015,217,0001,014,0002,265,088
13May 27, 2021 16:515,08336,873,92316,266,00002,265,088
14May 27, 2021 16:515,14633,464,44115,438,0001,029,0002,392,064
15May 27, 2021 16:515,25675,594,47016,820,38102,281,472
16May 27, 2021 16:515,26683,818,62916,850,50002,285,568
17May 27, 2021 16:515,31356,195,48217,002,04902,277,376