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:21Jack FrigaardJack FrigaardScore: 5,378Success
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:215,22940,383,49315,689,0001,045,0002,285,568
2Jan 2, 2023 16:215,26142,869,72214,856,0001,980,0002,277,376
3Jan 2, 2023 16:215,27133,041,97815,875,000992,0002,285,568
4Jan 2, 2023 16:215,27244,478,76214,885,0001,984,0002,269,184
5Jan 2, 2023 16:215,35439,985,28116,127,0001,007,0002,285,568
6Jan 2, 2023 16:215,35936,292,68615,131,0002,017,0002,285,568
7Jan 2, 2023 16:215,37833,503,11815,186,0002,024,0002,285,568
8Jan 2, 2023 16:215,40239,818,55615,254,0002,033,0002,285,568
9Jan 2, 2023 16:215,43344,491,88616,364,0001,022,0002,285,568
10Jan 2, 2023 16:215,52785,884,99517,687,54002,293,760
11Jan 2, 2023 16:215,53980,827,48017,724,45202,179,072
12Jan 2, 2023 16:215,53980,370,13217,724,51802,297,856