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 13, 2021 09:17Andrei 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 13, 2021 09:1700000Wrong answer: expected: 980443 got: 204 168 136 91 35 70 129 131 34 10 10 101 59 252 4 246 205 73 73 253 83 249 58 133 132 141 252 183 173 244 4 11 190 48 84 233 190 73 181 57 154 47 61 0 132 21 240 114 2 87 9 19 85 182 99 195 16 188 187 32 55 212 98...