苹果和虫子
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.
【题目描述】
你买了一箱n个苹果,很不幸的是买完时箱子里混进了一条虫子。虫子每x小时能吃掉一个苹果,假设虫子在吃完一个苹果之前不会吃另一个,那么经过y小时你还有多少个完整的苹果?
【输入】
输入仅一行,包括n,x和y(均为整数)。
【输出】
输出也仅一行,剩下的苹果个数。
【输入样例】
10 4 9
【输出样例】
7
数据范围
西山测试
- Status
- Done
- Rule
- Ledo
- Problem
- 6
- Start at
- 2026-5-1 9:30
- End at
- 2026-5-1 11:00
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 2