吴学长吃个桃桃好凉凉

吴学长吃个桃桃好凉凉

Background

输出吴学长最多吃多少个桃子

Description

吴学长很喜欢吃桃子,但是他的肚子只有有限的饱食度,但是吴学长想尽可能的吃更多的桃子,所以你来帮帮他,不能超过肚子容量!!!
第一行输入n和m,分别代表桃子个数和肚子容量,
第二行输入n个桃子,每个桃子饱食度不同,尽量多吃桃子。

Format

Input

x>=0.x<=25,0<=m<=30

Output

One integer, the sum of x and y.

Input

5 5
3 1 2 1 1

Output

4

Limitation

1s, 1024KiB for each test case.

Source

Vijos Original

信息

ID
1014
难度
1
分类
(无)
标签
(无)
递交数
25
已通过
4
通过率
16%
上传者

相关

在下列比赛中:

NHACM