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:55Jack FrigaardJack FrigaardScore: 5,338Success
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:555,28939,852,04014,935,0001,991,0002,519,040
2Jan 2, 2023 16:555,29737,324,70814,957,0001,994,0002,527,232
3Jan 2, 2023 16:555,30939,674,50514,991,0001,998,0002,285,568
4Jan 2, 2023 16:555,31139,550,02214,996,0001,999,0002,285,568
5Jan 2, 2023 16:555,31745,707,42815,013,0002,001,0002,527,232
6Jan 2, 2023 16:555,32741,586,79215,041,0002,005,0002,285,568
7Jan 2, 2023 16:555,33840,475,89815,072,0002,009,0002,285,568
8Jan 2, 2023 16:555,35338,708,81115,115,0002,015,0002,523,136
9Jan 2, 2023 16:555,37435,286,41415,173,0002,023,0002,347,008
10Jan 2, 2023 16:555,51082,815,41317,631,09502,306,048
11Jan 2, 2023 16:555,53798,774,92417,717,07002,289,664
12Jan 2, 2023 16:555,56293,477,99517,798,80702,301,952