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 listAug 7, 2022 10:33Franek KortaFranek KortaScore: 5,399Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 7, 2022 10:335,34746,383,05016,103,0001,006,0002,379,776
2Aug 7, 2022 10:335,36545,330,90015,148,0002,019,0002,392,064
3Aug 7, 2022 10:335,36745,053,89415,153,0002,020,0002,383,872
4Aug 7, 2022 10:335,37044,667,61716,174,0001,010,0002,387,968
5Aug 7, 2022 10:335,37740,043,61316,195,0001,012,0002,383,872
6Aug 7, 2022 10:335,38043,614,74115,192,0002,025,0002,519,040
7Aug 7, 2022 10:335,39944,721,28916,261,0001,016,0002,519,040
8Aug 7, 2022 10:335,40446,757,74216,276,0001,017,0002,387,968
9Aug 7, 2022 10:335,41344,990,18717,323,00002,519,040
10Aug 7, 2022 10:335,61096,948,12617,953,27402,273,280
11Aug 7, 2022 10:335,61891,383,09217,976,65402,281,472
12Aug 7, 2022 10:335,64960,183,96218,075,98902,277,376