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 listJan 9, 2025 20:40Ian MckibbenIan MckibbenError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 9, 2025 20:4000000Error: expected "975826 ", got "219 89 237 85 57 122 55 51 115 131 99 176 6 216 31 183 2 145 238 186 0 DATA: 3690552806326753755--5251241117249993869 16 DATA: -1988363851100417790--2361203455952826830 0"
2Jan 9, 2025 20:4100000Error: expected "977400 ", got "110 141 8 63 106 6 64 33 249 203 110 143 240 78 205 21 126 118 243 155 0 DATA: 2395922055154929006-1570998640127691769 16 DATA: 357366553231193726-5266042691960598546 0"