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 listDec 12, 2023 18:21Andrey LikhachevAndrey LikhachevScore: 5,836Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2023 18:215,78740,735,71118,517,00002,375,680
2Dec 12, 2023 18:215,80438,873,79118,574,00002,289,664
3Dec 12, 2023 18:215,81943,948,23716,552,0002,069,0002,478,080
4Dec 12, 2023 18:215,82245,031,63617,596,0001,035,0002,371,584
5Dec 12, 2023 18:215,82848,886,19818,650,00002,371,584
6Dec 12, 2023 18:215,83146,329,99817,624,0001,036,0002,371,584
7Dec 12, 2023 18:215,83652,725,61617,639,0001,037,0002,367,488
8Dec 12, 2023 18:215,84243,108,14218,694,00002,289,664
9Dec 12, 2023 18:215,90348,678,84017,896,000994,0002,375,680
10Dec 12, 2023 18:216,028107,940,13219,289,37402,240,512
11Dec 12, 2023 18:216,02986,793,55719,292,99702,232,320
12Dec 12, 2023 18:216,03583,591,87819,311,58702,232,320