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 listMay 5, 2026 07:46Victor MerckléVictor MerckléError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2026 07:46020,427,44102,395,0002,519,040expected "976565 ", got "0 "stderr
2May 5, 2026 07:46019,857,31902,323,0002,527,232expected "976088 ", got "0 "stderr
3May 5, 2026 07:46022,528,15202,343,0002,523,136expected "976911 ", got "0 "stderr