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:54Joad NacerJoad NacerScore: 4,885Success
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:544,84037,501,29415,488,00002,273,280
2Apr 20, 2024 14:544,84030,887,73115,489,00002,285,568
3Apr 20, 2024 14:544,84136,702,66114,458,0001,032,0002,289,664
4Apr 20, 2024 14:544,85534,763,19014,502,0001,035,0002,273,280
5Apr 20, 2024 14:544,86332,516,87814,526,0001,037,0002,281,472
6Apr 20, 2024 14:544,86434,485,76514,528,0001,037,0002,269,184
7Apr 20, 2024 14:544,88531,702,89114,589,0001,042,0002,289,664
8Apr 20, 2024 14:544,88733,576,22414,597,0001,042,0002,289,664
9Apr 20, 2024 14:544,91645,814,74714,682,0001,048,0002,289,664
10Apr 20, 2024 14:545,07964,640,58016,251,58302,306,048
11Apr 20, 2024 14:545,09895,286,95416,313,18002,252,800
12Apr 20, 2024 14:545,16576,402,22516,528,33602,179,072