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 listNov 5, 2026 14:07janwwwjanwwwError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 5, 2026 14:070320,312,942281,072,00028,420,0002,134,016expected "976911 ", got "P2 n=250000000 c127=976911 fnv=90104a279ebc9ab0 stdin=file st_size=250000000 min=972940@85 max=979079@154 head=806c5fb9c8a85bbe32fcb4facb3076ed482a3a3553d4c0491da1d7827d5e3475 tail=0c6976d25e32a11e781b3a1baf1b7d50 ......[000022...stderr
2Nov 5, 2026 14:070320,212,801281,108,00028,218,0002,134,016expected "975784 ", got "P2 n=250000000 c127=975784 fnv=c5627178a73deccf stdin=file st_size=250000000 min=973781@171 max=978799@222 head=3d9a47264ee83f88fd6256166aea912079f164546121d5da66d7cd192b42c1bd tail=e397b85b546d933a74dda5c92282b1c6 .....[000022...stderr
3Nov 5, 2026 14:070320,316,326281,099,00028,332,0002,134,016expected "976705 ", got "P2 n=250000000 c127=976705 fnv=53260e94315d74ed stdin=file st_size=250000000 min=974341@149 max=979574@78 head=d7559c2888e6bc658147f41945673840ce6f6a0ddd449df6ce3872573e0d39c9 tail=14a2280e07cad0323a43f202157e55d4 ......[000022...stderr