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:22Jack FrigaardJack FrigaardScore: 4,830Success
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:224,80738,299,23713,332,0002,051,0002,285,568
2Jan 2, 2023 17:224,81537,642,13815,409,00002,383,872
3Jan 2, 2023 17:224,82332,561,39015,434,00002,285,568
4Jan 2, 2023 17:224,82538,464,48414,412,0001,029,0002,269,184
5Jan 2, 2023 17:224,82637,448,65514,413,0001,029,0002,285,568
6Jan 2, 2023 17:224,82932,706,58414,423,0001,030,0002,285,568
7Jan 2, 2023 17:224,83036,643,16714,426,0001,030,0002,527,232
8Jan 2, 2023 17:224,84230,356,75014,461,0001,032,0002,367,488
9Jan 2, 2023 17:224,88231,521,13114,580,0001,041,0002,273,280
10Jan 2, 2023 17:225,06686,993,58416,212,34602,301,952
11Jan 2, 2023 17:225,10783,965,47616,343,77302,297,856
12Jan 2, 2023 17:225,14583,033,69916,462,95502,306,048