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 listOct 1, 2022 14:48Sergey SlotinSergey SlotinScore: 5,756Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 1, 2022 14:485,68741,020,79816,176,0002,022,0002,277,376
2Oct 1, 2022 14:485,69745,728,26417,217,0001,012,0002,277,376
3Oct 1, 2022 14:485,70840,273,23915,220,0003,044,0002,277,376
4Oct 1, 2022 14:485,71636,563,86714,227,0004,064,0002,269,184
5Oct 1, 2022 14:485,72242,961,76616,277,0002,034,0002,277,376
6Oct 1, 2022 14:485,74641,339,17517,365,0001,021,0002,273,280
7Oct 1, 2022 14:485,75644,841,76316,372,0002,046,0002,277,376
8Oct 1, 2022 14:485,79141,130,56616,472,0002,059,0002,342,912
9Oct 1, 2022 14:485,79936,972,37816,496,0002,062,0002,277,376
10Oct 1, 2022 14:485,99878,560,30019,192,97702,301,952
11Oct 1, 2022 14:486,00996,755,43219,229,28402,301,952
12Oct 1, 2022 14:486,01899,168,78819,256,07202,289,664