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 21:41Karthik 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 21:410131,396,684122,437,00002,113,536expected "975656 ", got "L250000000 975656m113=973174M248=979338 b251,233,3,198,44,223,165,63,56,152,171,234,50,7,201,159 "
2Oct 1, 2026 21:410131,950,644122,510,00002,113,536expected "976894 ", got "L250000000 976894m101=973933M250=979739 b45,186,27,162,184,202,86,183,183,163,207,163,154,190,141,91 "
3Oct 1, 2026 21:410131,485,512122,504,00002,113,536expected "977143 ", got "L250000000 977143m223=974200M29=980034 b19,194,151,239,220,183,215,160,228,170,242,171,205,61,125,155 "