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 listJun 9, 2024 14:29AndreyTSAndreyTSScore: 5,370Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 9, 2024 14:295,30342,303,62215,970,000998,0002,289,664
2Jun 9, 2024 14:295,31838,624,65615,015,0002,002,0002,273,280
3Jun 9, 2024 14:295,33640,522,46415,067,0002,008,0002,289,664
4Jun 9, 2024 14:295,34334,471,12615,085,0002,011,0002,273,280
5Jun 9, 2024 14:295,35339,054,35916,122,0001,007,0002,289,664
6Jun 9, 2024 14:295,36745,348,23916,165,0001,010,0002,273,280
7Jun 9, 2024 14:295,37042,637,13416,174,0001,010,0002,289,664
8Jun 9, 2024 14:295,37336,210,35015,171,0002,022,0002,289,664
9Jun 9, 2024 14:295,37439,814,01415,174,0002,023,0002,359,296
10Jun 9, 2024 14:295,50585,086,02017,615,90702,179,072
11Jun 9, 2024 14:295,52799,459,82217,686,23002,301,952
12Jun 9, 2024 14:295,55992,888,88317,788,02102,293,760