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 listJan 1, 2023 15:40Hal FHal FError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 15:4000000Error: expected "977310 ", got "1: 16054756 ns. 15: 15140187 ns. 16: 15125177 ns. 32: 15124023 ns. 33: 15118742 ns. 63: 15113689 ns. 64: 15110320 ns. 128: 15107446 ns. 127: 15106293 ns. 1024: 15109741 ns. "