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 "976548 ", got "0: 15669166 ns. 0: 14987545 ns. 1: 15016597 ns. 15: 15065264 ns. 16: 15083058 ns. 32: 15304256 ns. 33: 15340419 ns. 63: 15351461 ns. 64: 15322508 ns. 128: 15360810 ns. 127: 15338952 ns. 1024: 19131380 ns. "