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 listMay 11, 2021 15:36Andrei GrazhdankovAndrei GrazhdankovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2021 15:3600000Wrong answer: expected: 980174 got: [246 245 237 205 195 181 177 170 168 168 167 167 166 165 164 159 158 155 154 151 146 145 144 142 133 133 131 127 119 118 116 109 101 94 89 79 74 64 56 56 55 45 27 21 14 14 12 8 2 0] [254 240 229 227 226 224 214 214...