【例56.2】 购买饮料
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.
说明
小 B 出门游玩,他现在走到了 家饮品店前,第家买饮料的花费为 ,他只能去花费不超过自己所带钱数额的店,但他现在不确定自己兜里有多少钱,所以现在给出 次询问,请问如果他有 元,他有几家饮品店可选?
输入格式
第一行两个整数分别表示 ,。
第二行 个整数,第 个表示 ,接下来 行,每行一个整数表示询问。
,。
输出格式
对于每次询问回答小 有几家饮品店可选。
样例
5 2
1 2 3 4 5
3
53
5
2024吉利学院ACM暑假实践周训练4
- Status
- Done
- Rule
- XCPC
- Problem
- 9
- Start at
- 2024-7-4 13:30
- End at
- 2024-7-4 16:30
- Duration
- 3 hour(s)
- Host
- Partic.
- 29