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 listAug 26, 2026 17:08Ryan Chung Yi ShengRyan Chung Yi ShengError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 26, 2026 17:08025,402,03213,716,0001,160,0002,113,536expected "976768 ", got "488490 "
2Aug 26, 2026 17:08025,674,14513,670,0001,158,0002,113,536expected "975594 ", got "488430 "
3Aug 26, 2026 17:08026,659,02113,732,0001,122,0002,113,536expected "975019 ", got "487267 "