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 13, 2023 01:02gchebanovgchebanovScore: 5,351Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2023 01:025,31539,021,54315,007,0002,000,0002,281,472
2Jul 13, 2023 01:025,32640,751,48917,042,00002,400,256
3Jul 13, 2023 01:025,33642,833,13016,072,0001,004,0002,281,472
4Jul 13, 2023 01:025,33939,910,74916,080,0001,005,0002,404,352
5Jul 13, 2023 01:025,34339,464,99015,085,0002,011,0002,281,472
6Jul 13, 2023 01:025,34338,782,54415,087,0002,011,0002,400,256
7Jul 13, 2023 01:025,35134,954,81015,108,0002,014,0002,281,472
8Jul 13, 2023 01:025,36338,305,07516,151,0001,009,0002,404,352
9Jul 13, 2023 01:025,37436,745,23415,173,0002,023,0002,392,064
10Jul 13, 2023 01:025,55086,552,33617,759,53302,293,760
11Jul 13, 2023 01:025,559103,057,29017,789,57102,293,760
12Jul 13, 2023 01:025,58190,649,83117,859,97102,293,760