#C. 考级202103-3:苹果和虫子 2

    Type: Default 1000ms 128MiB

考级202103-3:苹果和虫子 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.

题目描述

你买了一箱 n 个苹果,很不幸的是买完时箱子里混进了一条虫子。虫子每 x 小时能吃掉一个苹果,假设虫子在吃完一个苹果之前不会吃另一个,那么经过 y 小时你还有多少个完整的苹果?

输入格式

输入仅一行,包括 n,x 和 y(均为整数)。

输出格式

输出也仅一行,剩下的苹果个数

输入数据 1

10 4 9

输出数据 1

7

数据范围与提示

注意:是要求完整的苹果数。

一级,还是一级(第4轮)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-7-26 9:30
End at
2023-8-20 9:30
Duration
600 hour(s)
Host
Partic.
21