声音
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.
题目描述
光头强喜欢从自动贩卖机购买饮料时的声音。
每次听到这个声音需要花费 硬币。
光头强手头有 硬币。
光头强会尽量用剩下的钱尽量多地听到这个声音,但最多只能听到 次,因为这个次数已经让他满意了。
光头强会听到这个声音多少次?
输入
一行共三个整数,分别表示
输出
输出光头强将会听到他最喜欢的声音的次数。
2 11 4
4
样例解释
因为光头强有不少于 8 硬币,所以他将会听到这个声音四次并且满意。
3 9 5
3
样例解释
他可能无法满意。
100 1 10
0
提示
粒子2024年11月下半月月赛
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2024-11-10 0:00
- End at
- 2024-11-24 4:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 27