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 listApr 9, 2024 15:09Drew GarciaDrew GarciaError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 9, 2024 15:0900000Error: expected "975301 ", got "975300"
2Apr 9, 2024 15:1000000Error: expected "977336 ", got "977334"
3Apr 9, 2024 17:0600000Error: expected "976891 ", got "976890"
4Apr 9, 2024 15:115,56083,508,83417,790,80102,297,856
5Apr 9, 2024 15:115,570100,603,78717,825,16702,207,744
6Apr 9, 2024 17:075,57292,084,43217,831,29002,211,840
7Apr 9, 2024 17:075,57483,067,02817,835,83502,179,072
8Apr 9, 2024 17:065,57594,842,21217,840,97402,183,168
9Apr 9, 2024 17:065,59170,214,79517,891,01802,183,168
10Apr 9, 2024 15:115,60864,426,51917,946,08402,306,048
11Apr 9, 2024 17:065,61081,083,69917,951,42702,179,072
12Apr 9, 2024 17:075,61480,783,36717,964,60602,183,168