[GESP202503 一级] 图书馆里的老鼠
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,表⽰经过的总时间;
输⼊数据保证 ⼩时后⾄少会剩下⼀本完整的书
输出格式
⼀⾏,⼀个整数,表⽰ y ⼩时后图书馆⾥还剩下多少本完整的书。
样例
10
2
3
8
5
2
4
3
胡梦宸、杨梓皓GESP一级练习
- Status
- Done
- Problem
- 10
- Open Since
- 2026-6-14 0:00
- Deadline
- 2026-6-22 23:59
- Extension
- 24 hour(s)