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 22:14Jack FrigaardJack FrigaardScore: 5,430Success
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 22:145,39042,182,57815,219,0002,029,0002,269,184
2Jan 3, 2023 22:145,39445,195,90115,231,0002,030,0002,289,664
3Jan 3, 2023 22:145,39739,835,19516,255,0001,015,0002,265,088
4Jan 3, 2023 22:145,39841,933,51515,242,0002,032,0002,289,664
5Jan 3, 2023 22:145,41039,649,56015,275,0002,036,0002,289,664
6Jan 3, 2023 22:145,42339,666,31515,312,0002,041,0002,289,664
7Jan 3, 2023 22:145,43040,822,89916,355,0001,022,0002,289,664
8Jan 3, 2023 22:145,44038,253,32715,360,0002,048,0002,527,232
9Jan 3, 2023 22:145,47541,039,00015,458,0002,061,0002,277,376
10Jan 3, 2023 22:145,64090,020,32318,047,84802,297,856
11Jan 3, 2023 22:145,67377,129,93318,152,83602,293,760
12Jan 3, 2023 22:145,69174,899,81018,210,41702,293,760