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:13Franek KortaFranek KortaScore: 4,883Success
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:134,85841,033,37715,546,00002,527,232
2Sep 3, 2022 21:134,85830,892,14015,547,00002,433,024
3Sep 3, 2022 21:134,86333,853,45615,561,00002,531,328
4Sep 3, 2022 21:134,86431,370,75515,566,00002,269,184
5Sep 3, 2022 21:134,88043,624,14915,617,00002,433,024
6Sep 3, 2022 21:134,88136,448,58615,620,00002,269,184
7Sep 3, 2022 21:134,88338,343,88415,626,00002,433,024
8Sep 3, 2022 21:134,88340,452,32914,586,0001,041,0002,269,184
9Sep 3, 2022 21:134,89638,133,68415,668,00002,428,928
10Sep 3, 2022 21:134,98674,827,08815,955,47002,191,360
11Sep 3, 2022 21:134,99786,977,70415,990,56302,203,648
12Sep 3, 2022 21:135,03056,266,70916,095,82102,191,360