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 26, 2026 00:18Uladzislau NestsiarukUladzislau NestsiarukError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 00:18028,410,0199,126,0002,028,0002,519,040expected "976393 ", got "975545 "
2Apr 26, 2026 00:18031,575,0529,202,0002,044,0002,527,232expected "976712 ", got "974889 "
3Apr 26, 2026 00:18030,421,0229,058,0002,012,0002,519,040expected "977855 ", got "978065 "