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:05Ryan 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:05025,585,18213,728,0001,049,0002,113,536expected "975077 ", got "556684 "
2Aug 26, 2026 17:05025,682,76013,844,0001,111,0002,113,536expected "975826 ", got "558624 "
3Aug 26, 2026 17:05027,049,55813,859,0001,107,0002,113,536expected "975757 ", got "557366 "