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 31, 2026 22:39IlyaIlyaError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2026 22:390129,788,47315,149,000105,796,0002,113,536expected "976517 ", got "975203 "
2May 31, 2026 22:390131,389,54215,327,000107,065,0002,113,536expected "976444 ", got "977671 "
3May 31, 2026 22:390131,591,32415,112,000107,367,0002,113,536expected "977665 ", got "976828 "