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:51Jack FrigaardJack FrigaardScore: 4,852Success
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:514,81635,567,16314,383,0001,027,0002,285,568
2Jan 2, 2023 16:514,81632,548,56114,384,0001,027,0002,527,232
3Jan 2, 2023 16:514,81835,549,86014,390,0001,027,0002,523,136
4Jan 2, 2023 16:514,83435,294,63214,437,0001,031,0002,285,568
5Jan 2, 2023 16:514,83832,839,41514,451,0001,032,0002,285,568
6Jan 2, 2023 16:514,84332,127,08214,466,0001,033,0002,285,568
7Jan 2, 2023 16:514,85241,258,98814,491,0001,035,0002,285,568
8Jan 2, 2023 16:514,86537,840,57514,531,0001,037,0002,285,568
9Jan 2, 2023 16:514,87035,313,27315,585,00002,285,568
10Jan 2, 2023 16:515,07969,009,29216,252,54602,289,664
11Jan 2, 2023 16:515,08589,386,35916,272,92302,297,856
12Jan 2, 2023 16:515,08755,297,44516,278,51402,293,760