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 25, 2021 23:00Mikhail DektyarevMikhail DektyarevScore: 4,873Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2021 23:004,82535,184,14814,410,0001,029,0002,281,472
2May 25, 2021 23:004,82633,906,44414,414,0001,029,0002,408,448
3May 25, 2021 23:004,83138,667,87214,430,0001,030,0002,281,472
4May 25, 2021 23:004,84033,737,15614,457,0001,032,0002,281,472
5May 25, 2021 23:004,84132,372,94515,491,00002,408,448
6May 25, 2021 23:004,84236,766,27914,461,0001,032,0002,281,472
7May 25, 2021 23:004,84330,924,32514,464,0001,033,0002,281,472
8May 25, 2021 23:004,84843,637,45415,514,00002,281,472
9May 25, 2021 23:004,85636,827,24914,504,0001,036,0002,281,472
10May 25, 2021 23:004,86630,773,49014,532,0001,038,0002,523,136
11May 25, 2021 23:004,86636,325,27514,534,0001,038,0002,260,992
12May 25, 2021 23:004,87135,866,59415,587,00002,281,472
13May 25, 2021 23:004,87330,534,39715,593,00002,281,472
14May 25, 2021 23:004,88033,038,02114,576,0001,041,0002,396,160
15May 25, 2021 23:004,88143,086,65115,620,00002,281,472
16May 25, 2021 23:004,88233,420,28814,580,0001,041,0002,281,472
17May 25, 2021 23:004,88332,539,76014,585,0001,041,0002,281,472
18May 25, 2021 23:004,88753,440,64515,637,00002,281,472
19May 25, 2021 23:005,00055,711,45816,000,08602,297,856
20May 25, 2021 23:005,01952,071,64416,061,57002,293,760
21May 25, 2021 23:005,02965,847,68116,093,14902,297,856
22May 25, 2021 23:005,03481,252,97116,108,91302,301,952
23May 25, 2021 23:005,05363,451,72416,169,56902,289,664
24May 25, 2021 23:005,07247,916,04516,229,53802,174,976