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 listApr 27, 2026 18:57Victor 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
1Apr 27, 2026 18:570711,247,461688,244,0003,001,0002,531,328expected "975668 ", got "979039 "stderr
2Apr 27, 2026 18:570707,300,811687,206,0004,001,0002,523,136expected "976390 ", got "979723 "stderr
3Apr 27, 2026 18:570710,265,197687,859,0002,999,0002,519,040expected "976573 ", got "979992 "stderr