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 listMay 23, 2021 18:02Yuriy LyfenkoYuriy LyfenkoScore: 5,138Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 23, 2021 18:025,10037,578,56614,280,0002,040,0002,260,992
2May 23, 2021 18:025,10543,854,27715,316,0001,021,0002,527,232
3May 23, 2021 18:025,11342,142,44015,341,0001,022,0002,269,184
4May 23, 2021 18:025,12442,550,43215,373,0001,024,0002,506,752
5May 23, 2021 18:025,12645,597,17115,379,0001,025,0002,265,088
6May 23, 2021 18:025,13741,887,31015,412,0001,027,0002,396,160
7May 23, 2021 18:025,13838,701,56515,416,0001,027,0002,265,088
8May 23, 2021 18:025,15540,240,68616,495,00002,265,088
9May 23, 2021 18:025,16031,727,18616,511,00002,506,752
10May 23, 2021 18:025,35889,104,80817,145,56002,269,184
11May 23, 2021 18:025,39080,121,49017,246,85702,273,280
12May 23, 2021 18:025,39461,038,49417,261,41102,273,280