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 1, 2026 23:34Karthik 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 1, 2026 23:3409,452,131782,00002,113,536expected "976986 ", got "s130 34,31,30,34,31,31,5 "
2Oct 1, 2026 23:34010,971,126801,00002,113,536expected "977878 ", got "s122 41,31,29,33,31,37,4 "
3Oct 1, 2026 23:3409,569,005905,00002,113,536expected "976497 ", got "s129 37,32,38,33,31,30,16 "