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 28, 2026 14:12NicoNicoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 28, 2026 14:12029,025,37017,507,0001,061,0002,113,536expected "978059 ", got "Before 978059 "
2Sep 28, 2026 14:12029,629,24617,199,0001,290,0002,117,632expected "976566 ", got "Before 976566 "
3Sep 28, 2026 14:12028,909,81617,179,0001,231,0002,113,536expected "976830 ", got "Before 976830 "