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:42Hal 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:4200000Error: expected "977867 ", got "1: 15722111 ns. 1: 15073369 ns. 15: 15048505 ns. 16: 15057309 ns. 32: 15059118 ns. 33: 15030208 ns. 63: 15044992 ns. 64: 15038533 ns. 128: 15080119 ns. 127: 15034952 ns. 1024: 15039904 ns. "