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 listJul 2, 2026 21:36IlyaIlyaError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 21:38014,092,5043,633,0001,027,0002,117,632expected "976529 ", got "976063 "
2Jul 2, 2026 21:38014,051,4053,703,0001,020,0002,117,632expected "977968 ", got "978224 "
3Jul 2, 2026 21:38014,057,5563,669,0001,031,0002,117,632expected "976373 ", got "975486 "