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 21, 2023 16:29gchebanovgchebanovScore: 5,338Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 16:295,31240,873,53014,999,0001,999,0002,400,256
2Jul 21, 2023 16:295,31439,253,73515,005,0002,000,0002,404,352
3Jul 21, 2023 16:295,31738,788,28816,014,0001,000,0002,281,472
4Jul 21, 2023 16:295,33138,575,78516,056,0001,003,0002,281,472
5Jul 21, 2023 16:295,33436,982,99415,061,0002,008,0002,281,472
6Jul 21, 2023 16:295,33742,641,18816,074,0001,004,0002,400,256
7Jul 21, 2023 16:295,33839,008,98015,072,0002,009,0002,400,256
8Jul 21, 2023 16:295,36434,004,32116,156,0001,009,0002,514,944
9Jul 21, 2023 16:295,37033,720,12816,173,0001,010,0002,281,472
10Jul 21, 2023 16:295,47479,307,71917,517,77802,293,760
11Jul 21, 2023 16:295,51466,326,17617,646,14802,289,664
12Jul 21, 2023 16:295,51995,994,54717,659,82302,289,664