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 listSep 12, 2026 05:05Haha ExpertHaha ExpertError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 12, 2026 05:05020,878,25711,299,0001,062,0002,117,632expected "976499 ", got "487502 "
2Sep 12, 2026 05:05021,016,81111,225,0001,053,0002,117,632expected "976630 ", got "488148 "
3Sep 12, 2026 05:05020,929,96111,182,0001,019,0002,117,632expected "975730 ", got "488102 "