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 1, 2026 23:33Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 1, 2026 23:33021,686,12412,658,000020,480expected "976347 ", got "c976347 s131 r11952 u58 "
2Oct 1, 2026 23:33021,757,20612,788,000020,480expected "976099 ", got "c976099 s120 r11936 u59 "
3Oct 1, 2026 23:33021,624,71312,650,000020,480expected "976021 ", got "c976021 s128 r11914 u62 "