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 17:34Jack FrigaardJack FrigaardScore: 5,651Success
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 17:345,62039,497,82515,986,0001,998,0002,269,184
2Jan 2, 2023 17:345,62936,369,60216,011,0002,001,0002,285,568
3Jan 2, 2023 17:345,64039,399,10016,044,0002,005,0002,523,136
4Jan 2, 2023 17:345,64640,690,05816,060,0002,007,0002,285,568
5Jan 2, 2023 17:345,64847,688,22216,066,0002,008,0002,531,328
6Jan 2, 2023 17:345,64937,524,07017,074,0001,004,0002,285,568
7Jan 2, 2023 17:345,65142,114,90017,079,0001,004,0002,285,568
8Jan 2, 2023 17:345,67040,774,64716,129,0002,016,0002,269,184
9Jan 2, 2023 17:345,68339,346,12318,187,00002,285,568
10Jan 2, 2023 17:345,73396,362,97718,346,43102,293,760
11Jan 2, 2023 17:345,74283,741,50518,373,52102,301,952
12Jan 2, 2023 17:345,763103,881,19418,441,38302,297,856