結果 : integral of max function