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 29, 2021 08:03Dmitry DolgopolovDmitry DolgopolovScore: 5,035Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2021 08:034,99444,414,70013,985,0001,997,0002,437,120
2May 29, 2021 08:035,00132,789,36814,003,0002,000,0002,535,424
3May 29, 2021 08:035,00434,008,05614,011,0002,001,0002,428,928
4May 29, 2021 08:035,00432,129,70814,011,0002,001,0002,445,312
5May 29, 2021 08:035,01030,576,58014,028,0002,004,0002,437,120
6May 29, 2021 08:035,01038,201,63114,028,0002,004,0002,445,312
7May 29, 2021 08:035,01330,429,27414,035,0002,005,0002,445,312
8May 29, 2021 08:035,01334,142,54514,036,0002,005,0002,445,312
9May 29, 2021 08:035,01531,745,67915,046,0001,003,0002,445,312
10May 29, 2021 08:035,01830,260,92414,052,0002,007,0002,437,120
11May 29, 2021 08:035,02838,180,17814,079,0002,011,0002,445,312
12May 29, 2021 08:035,03238,126,20014,090,0002,012,0002,441,216
13May 29, 2021 08:035,03534,657,86214,098,0002,014,0002,441,216
14May 29, 2021 08:035,04134,587,06714,114,0002,016,0002,437,120
15May 29, 2021 08:035,04149,604,78614,114,0002,016,0002,437,120
16May 29, 2021 08:035,04930,441,11314,137,0002,019,0002,535,424
17May 29, 2021 08:035,05733,510,66415,172,0001,011,0002,273,280
18May 29, 2021 08:035,06937,889,38014,194,0002,027,0002,273,280
19May 29, 2021 08:035,20644,842,02116,660,17802,203,648
20May 29, 2021 08:035,21539,943,83416,686,68202,191,360
21May 29, 2021 08:035,24779,393,62316,790,99102,199,552
22May 29, 2021 08:035,24966,535,99016,797,99302,195,456
23May 29, 2021 08:035,25050,048,93716,800,14602,207,744
24May 29, 2021 08:035,38065,743,17817,216,66202,203,648