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 16:53Jack FrigaardJack FrigaardScore: 4,835Success
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 16:534,80827,271,68013,333,0002,051,0002,379,776
2Jan 2, 2023 16:534,81439,427,66615,405,00002,285,568
3Jan 2, 2023 16:534,81531,238,24614,380,0001,027,0002,277,376
4Jan 2, 2023 16:534,82549,867,06314,411,0001,029,0002,273,280
5Jan 2, 2023 16:534,83131,560,87513,397,0002,061,0002,285,568
6Jan 2, 2023 16:534,83343,003,43814,435,0001,031,0002,527,232
7Jan 2, 2023 16:534,83534,813,01314,442,0001,031,0002,285,568
8Jan 2, 2023 16:534,83634,224,05914,444,0001,031,0002,273,280
9Jan 2, 2023 16:534,85532,881,15314,501,0001,035,0002,359,296
10Jan 2, 2023 16:535,072102,413,60916,231,95902,179,072
11Jan 2, 2023 16:535,09589,958,75416,303,05002,297,856
12Jan 2, 2023 16:535,10270,023,11516,326,30502,306,048