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:41Hal 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:4100000Error: expected "977670 ", got "1: 16406058 ns. 1: 15164252 ns. 15: 15118759 ns. 16: 15125552 ns. 32: 15119571 ns. 33: 15134897 ns. 63: 15099928 ns. 64: 15106472 ns. 128: 15105284 ns. 127: 15120411 ns. 1024: 15110580 ns. "