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 listSep 3, 2022 21:14Franek KortaFranek KortaScore: 4,877Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2022 21:144,85335,476,34115,528,00002,428,928
2Sep 3, 2022 21:144,85736,091,90113,469,0002,072,0002,420,736
3Sep 3, 2022 21:144,86229,774,62515,557,00002,269,184
4Sep 3, 2022 21:144,87129,934,23913,510,0002,078,0002,269,184
5Sep 3, 2022 21:144,87443,618,89215,596,00002,420,736
6Sep 3, 2022 21:144,87632,078,72613,522,0002,080,0002,433,024
7Sep 3, 2022 21:144,87741,739,41414,565,0001,040,0002,531,328
8Sep 3, 2022 21:144,87935,333,62314,572,0001,040,0002,428,928
9Sep 3, 2022 21:144,88733,467,77215,637,00002,265,088
10Sep 3, 2022 21:144,99670,823,47515,988,53302,203,648
11Sep 3, 2022 21:144,99771,676,27115,990,43302,191,360
12Sep 3, 2022 21:145,00772,292,86016,023,13902,211,840