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:27Hal 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:2700000Error: expected "976177 ", got "0: 15655815 ns. 0: 15012922 ns. 1: 14993747 ns. 15: 15920394 ns. 16: 15755068 ns. 32: 16396752 ns. 33: 16825835 ns. 63: 15658788 ns. 64: 15297201 ns. 128: 15252824 ns. 127: 15464545 ns. 1024: 17950471 ns. "