iv>对值不超过K。最大化两个子序列长度的和并输出这个值。1 &le; N &le; 50000, 1 &le; a_i &le; 10 ^ 9, 0 &le; K &le; 10^ 9</div>
</div>
<div></div>
<p></p></div></div></div></div><div class="row"><div class="column"><h4 class="ui top attached block header">输入格式</h4><div class="ui bottom attached segment font-content"><div style="position: relative; overflow: hidden;"><div class=content><div>The first line of the input file contains N and K (0&le;K&le;1,000,000,000). The next 