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:52Jack FrigaardJack FrigaardScore: 4,869Success
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:524,80940,540,16213,337,0002,051,0002,281,472
2Jan 2, 2023 16:524,81231,514,06013,345,0002,053,0002,285,568
3Jan 2, 2023 16:524,82935,806,03614,422,0001,030,0002,383,872
4Jan 2, 2023 16:524,84233,108,85215,494,00002,273,280
5Jan 2, 2023 16:524,84737,385,46414,477,0001,034,0002,285,568
6Jan 2, 2023 16:524,85243,906,70914,490,0001,035,0002,527,232
7Jan 2, 2023 16:524,86938,431,86714,542,0001,038,0002,285,568
8Jan 2, 2023 16:524,87035,651,19314,546,0001,039,0002,363,392
9Jan 2, 2023 16:524,87232,319,21614,552,0001,039,0002,527,232
10Jan 2, 2023 16:525,07987,587,93616,253,59902,297,856
11Jan 2, 2023 16:525,08990,599,69716,283,83902,301,952
12Jan 2, 2023 16:525,09397,803,90416,297,56002,285,568