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 listJul 6, 2026 20:17Adam FolwarcznyAdam FolwarcznyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2026 20:19025,967,4435,228,00012,743,0002,113,536expected "978766 ", got "000000 "
2Jul 6, 2026 20:19026,082,1085,313,00012,774,0002,113,536expected "976665 ", got "000000 "
3Jul 6, 2026 20:19025,653,5465,133,00012,711,0002,113,536expected "977337 ", got "000000 "