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 3, 2023 20:53Hal FHal FScore: 4,866Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2023 20:534,80539,327,42014,351,0001,025,0002,289,664
2Jan 3, 2023 20:534,81332,124,40915,402,00002,285,568
3Jan 3, 2023 20:534,82633,187,98314,415,0001,029,0002,273,280
4Jan 3, 2023 20:534,83032,404,57114,425,0001,030,0002,289,664
5Jan 3, 2023 20:534,83238,182,88014,432,0001,030,0002,289,664
6Jan 3, 2023 20:534,85435,204,89314,497,0001,035,0002,273,280
7Jan 3, 2023 20:534,86637,148,10715,572,00002,289,664
8Jan 3, 2023 20:534,87549,175,04114,561,0001,040,0002,289,664
9Jan 3, 2023 20:534,88033,307,57815,616,00002,289,664
10Jan 3, 2023 20:535,07895,501,74616,249,39402,293,760
11Jan 3, 2023 20:535,08685,796,83616,274,27802,183,168
12Jan 3, 2023 20:535,09277,523,09116,295,58602,293,760