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 listJul 20, 2023 22:32gchebanovgchebanovScore: 5,219Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 22:325,18632,267,29415,559,0001,037,0002,265,088
2Jul 20, 2023 22:325,18942,816,46716,606,00002,265,088
3Jul 20, 2023 22:325,19034,067,38916,607,00002,265,088
4Jul 20, 2023 22:325,19139,942,47115,573,0001,038,0002,392,064
5Jul 20, 2023 22:325,19741,108,02215,591,0001,039,0002,265,088
6Jul 20, 2023 22:325,19933,553,38715,599,0001,039,0002,265,088
7Jul 20, 2023 22:325,21936,997,36816,700,00002,400,256
8Jul 20, 2023 22:325,22240,819,13616,710,00002,527,232
9Jul 20, 2023 22:325,27543,682,09214,895,0001,986,0002,265,088
10Jul 20, 2023 22:325,47392,277,48817,515,16302,281,472
11Jul 20, 2023 22:325,48967,978,72017,564,22202,273,280
12Jul 20, 2023 22:325,50891,769,88817,627,00002,281,472