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 listApr 20, 2024 14:53Joad NacerJoad NacerScore: 4,864Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2024 14:534,80631,070,99513,328,0002,050,0002,265,088
2Apr 20, 2024 14:534,81133,029,27515,395,00002,289,664
3Apr 20, 2024 14:534,82132,297,71314,399,0001,028,0002,289,664
4Apr 20, 2024 14:534,82435,670,56014,407,0001,029,0002,289,664
5Apr 20, 2024 14:534,83838,976,73714,450,0001,032,0002,269,184
6Apr 20, 2024 14:534,85335,177,69515,530,00002,289,664
7Apr 20, 2024 14:534,86431,119,37214,528,0001,037,0002,281,472
8Apr 20, 2024 14:534,86532,970,61015,567,00002,289,664
9Apr 20, 2024 14:534,89932,015,04315,676,00002,281,472
10Apr 20, 2024 14:535,02584,079,07616,079,36002,174,976
11Apr 20, 2024 14:535,07669,196,20416,244,60902,183,168
12Apr 20, 2024 14:535,086102,180,84916,273,87302,297,856