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 listOct 8, 2026 21:37Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 8, 2026 21:38011,687,19601,691,0002,203,648expected "975902 ", got "props=yes "
2Oct 8, 2026 21:38011,849,76201,846,0002,207,744expected "976005 ", got "props=yes "
3Oct 8, 2026 21:38011,828,76901,841,0002,203,648expected "974981 ", got "props=yes "