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 16, 2026 05:42SODIUM IS NOT A CATSODIUM IS NOT A CATError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2026 05:42030,288,70220,433,0001,068,0002,113,536expected "977537 ", got "983570 "
2May 16, 2026 05:42030,053,63320,288,0001,057,0002,113,536expected "975266 ", got "978680 "
3May 16, 2026 05:42033,469,79220,306,0001,080,0002,113,536expected "975875 ", got "980178 "