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 20:59Karthik 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 20:59011,517,3922,468,00002,113,536expected "976569 ", got "s132 0e41,41,38,40,38,39,38,37,37,37,37,37,36,36,35,34,34,35,35,34b33,33,33,54m35,32,31,31E561 0 "
2Oct 1, 2026 20:59011,366,8582,443,00002,113,536expected "975098 ", got "s120 0e42,39,39,40,39,39,38,38,36,37,36,36,36,34,44,34,34,34,34,34b33,32,32,32m33,32,32,32E568 0 "
3Oct 1, 2026 20:59011,452,1022,504,00002,113,536expected "977030 ", got "s120 0e41,36,36,37,36,36,37,36,37,36,36,36,36,35,35,35,35,34,35,35b33,34,34,33m33,33,33,33E568 1 "