荣哥的理想
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
####题目描述 人人都有理想,荣哥也不例外。 荣哥有很多理想,但是荣哥没有那么多的精力去实现那么多的理想,他想在有限的精力内实现最多的理想。 ####输入格式 每组数据第一行输入两个整数 , ,表示荣哥有 个理想,精力为 。
接下来 行中每行有一个整数 ,表示实现这个理想要耗费的精力为 。 ####输出格式 输出荣哥最多能实现的理想数量。 ####样例1输入
3 10
1
5
6
####样例1输出:
2
####数据范围与提示 对于 数据满足,
对于 数据满足,
对于 数据满足,
2023CSP考前冲刺模拟6
- Status
- Done
- Rule
- OI
- Problem
- 4
- Start at
- 2023-10-2 8:30
- End at
- 2023-10-2 12:00
- Duration
- 3.5 hour(s)
- Host
- Partic.
- 5