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 listJul 9, 2023 01:15Andrew MoonAndrew MoonScore: 5,271Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 9, 2023 01:155,22747,967,50815,681,0001,045,0002,383,872
2Jul 9, 2023 01:155,22743,457,72216,726,00002,265,088
3Jul 9, 2023 01:155,26744,147,30115,862,000991,0002,527,232
4Jul 9, 2023 01:155,26945,127,30214,877,0001,983,0002,265,088
5Jul 9, 2023 01:155,26936,045,41114,877,0001,983,0002,265,088
6Jul 9, 2023 01:155,27136,551,37815,876,000992,0002,383,872
7Jul 9, 2023 01:155,27140,563,95015,876,000992,0002,396,160
8Jul 9, 2023 01:155,27337,944,19814,889,0001,985,0002,265,088
9Jul 9, 2023 01:155,27444,682,21214,893,0001,985,0002,265,088
10Jul 9, 2023 01:155,44271,013,52917,413,72402,285,568
11Jul 9, 2023 01:155,46677,618,67517,491,87702,289,664
12Jul 9, 2023 01:155,49382,086,27117,577,06102,277,376