Type: Default 1000ms 256MiB

看书

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.

题目描述

一本书共 nn页,小明计划第一天看xx页,此后每一天都要比前一天多看yy页,请问小明几天可以看完这本书?

输入格式

一行输入三个整数nxyn,x,y,分别表示书的总页数、计划第一天看的页数以及此后每天都要比前一天多看的页数,整数之间以一个空格隔开

输出格式

输出一个整数,表示小明几天可以看完这本书

100 10 5
5

提示

(20n5000(20 \le n \le 5000 , 1x,y20)1\le x,y\le20)

粒子2025年3月上半月月赛

Not Attended
Status
Done
Rule
IOI
Problem
4
Start at
2025-2-28 0:00
End at
2025-3-16 16:00
Duration
3 hour(s)
Host
Partic.
14