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 2, 2023 16:31Jack FrigaardJack FrigaardScore: 5,343Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 16:315,31444,220,76217,005,00002,269,184
2Jan 2, 2023 16:315,31640,187,92615,010,0002,001,0002,285,568
3Jan 2, 2023 16:315,32838,668,63915,045,0002,006,0002,269,184
4Jan 2, 2023 16:315,32840,533,11515,045,0002,006,0002,523,136
5Jan 2, 2023 16:315,33334,713,57715,058,0002,007,0002,527,232
6Jan 2, 2023 16:315,33842,648,79916,079,0001,004,0002,371,584
7Jan 2, 2023 16:315,34339,801,56916,091,0001,005,0002,285,568
8Jan 2, 2023 16:315,34443,503,59415,090,0002,012,0002,523,136
9Jan 2, 2023 16:315,34940,969,41016,110,0001,006,0002,285,568
10Jan 2, 2023 16:315,50783,604,89117,621,60702,285,568
11Jan 2, 2023 16:315,562109,765,63317,799,57902,297,856
12Jan 2, 2023 16:315,58092,439,57017,855,87002,293,760