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 1, 2023 21:32Jack FrigaardJack FrigaardScore: 5,628Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 21:325,58235,452,49217,861,00002,289,664
2Jan 1, 2023 21:325,58343,330,09316,873,000992,0002,289,664
3Jan 1, 2023 21:325,58734,184,88715,892,0001,986,0002,289,664
4Jan 1, 2023 21:325,61939,655,82916,982,000998,0002,289,664
5Jan 1, 2023 21:325,62139,435,14415,988,0001,998,0002,523,136
6Jan 1, 2023 21:325,62643,186,37316,003,0002,000,0002,523,136
7Jan 1, 2023 21:325,62843,164,57617,008,0001,000,0002,289,664
8Jan 1, 2023 21:325,65441,097,88816,082,0002,010,0002,289,664
9Jan 1, 2023 21:325,65547,259,60316,086,0002,010,0002,289,664
10Jan 1, 2023 21:325,97856,029,61019,129,87802,301,952
11Jan 1, 2023 21:325,97976,285,00919,132,12102,301,952
12Jan 1, 2023 21:326,12487,910,09119,597,90202,301,952