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 listMay 5, 2026 16:48Josu San MartinJosu San MartinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2026 16:48028,016,5825,797,0001,236,0002,367,488expected "975627 ", got "409429"
2May 5, 2026 16:48021,622,1055,765,0001,181,0002,367,488expected "974801 ", got "409255"
3May 5, 2026 16:48025,342,9255,885,0001,107,0002,363,392expected "975684 ", got "409001"