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 29, 2026 19:52C21C21Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 29, 2026 19:52025,959,83213,754,0001,119,0002,113,536expected "975478 ", got "975731 "
2Oct 29, 2026 19:524,64426,387,84813,737,0001,124,0002,113,536
3Oct 29, 2026 19:524,64525,805,03613,840,0001,024,0002,113,536