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 listApr 11, 2024 16:56Drew GarciaDrew GarciaScore: 5,181Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2024 16:565,14032,458,73615,420,0001,028,0002,269,184
2Apr 11, 2024 16:565,14132,011,70216,451,00002,392,064
3Apr 11, 2024 16:565,15737,803,19315,471,0001,031,0002,269,184
4Apr 11, 2024 16:565,16545,660,96314,463,0002,066,0002,400,256
5Apr 11, 2024 16:565,16532,306,85015,496,0001,033,0002,523,136
6Apr 11, 2024 16:565,16737,482,18111,368,0005,167,0002,404,352
7Apr 11, 2024 16:565,18135,727,06215,544,0001,036,0002,269,184
8Apr 11, 2024 16:565,18436,197,56414,517,0002,073,0002,392,064
9Apr 11, 2024 16:565,18537,770,19716,592,00002,404,352
10Apr 11, 2024 16:565,50461,674,98217,613,21502,293,760
11Apr 11, 2024 16:565,52092,121,73017,665,33702,293,760
12Apr 11, 2024 16:565,55381,639,61817,770,68302,293,760