結果 : maximum subarray with k distinct elements