算法

时间复杂度

算法A

{ O ( K log n ( m + n log n ) ) , O ( 1 ) }

算法B

O ( K n + 2 n log P )

算法C

O ( K m n log n + K n log P )