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 listJun 2, 2026 21:25IlyaIlyaError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2026 21:25012,583,5182,739,0001,010,0002,117,632expected "975816 ", got "950000 "
2Jun 2, 2026 21:25012,550,7773,739,00002,117,632expected "975243 ", got "837500 "
3Jun 2, 2026 21:25012,517,9633,676,00002,117,632expected "975530 ", got "1000000 "