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 16:26Hal 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 16:2600000Error: expected "974381 ", got "0: 15602126 ns. 0: 14987456 ns. 1: 14981171 ns. 15: 15003978 ns. 16: 14996427 ns. 32: 14967438 ns. 33: 14974228 ns. 63: 14974024 ns. 64: 14968843 ns. 128: 14982617 ns. 127: 15027462 ns. 1024: 15063469 ns. "