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:34Jack FrigaardJack FrigaardScore: 5,183Success
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:345,13734,543,34115,412,0001,027,0002,269,184
2Jan 2, 2023 16:345,15939,575,45315,479,0001,031,0002,285,568
3Jan 2, 2023 16:345,16232,351,63716,518,00002,383,872
4Jan 2, 2023 16:345,16642,141,76015,497,0001,033,0002,273,280
5Jan 2, 2023 16:345,16931,668,04215,509,0001,033,0002,269,184
6Jan 2, 2023 16:345,17240,110,31015,515,0001,034,0002,285,568
7Jan 2, 2023 16:345,18339,775,97616,585,00002,285,568
8Jan 2, 2023 16:345,18333,597,48415,550,0001,036,0002,269,184
9Jan 2, 2023 16:345,19945,979,10915,597,0001,039,0002,285,568
10Jan 2, 2023 16:345,38576,339,36817,232,21402,301,952
11Jan 2, 2023 16:345,41680,063,76717,330,71702,301,952
12Jan 2, 2023 16:345,50985,846,02017,629,01802,306,048