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.

题目描述

小 Z 来到一家超市,发现超市的正在对一种饮料做活动,这种饮料 xx 元一瓶。有意思的是,可以用 yy 个空瓶子再换一瓶,而且可以向服务员借空瓶子,但一定要还给他们

小 Z 想,如果把他身上的 nn 元钱都用来买饮料,并且再用空瓶子换,他最多能喝到多少瓶饮料?

输入格式

一行,包含三个整数 nxyn,x,y

输出格式

输出小 Z 最多可以喝到饮料瓶数。

样例 #1

样例输入 #1

13 6 3

样例输出 #1

3

提示

1n1061x1002y1001≤n≤10^6 ,1≤x≤100,2≤y≤100

2025年入门组测试一(2025.1.21)

Not Attended
Status
Done
Rule
IOI
Problem
6
Start at
2025-1-22 16:30
End at
2025-1-22 21:30
Duration
5 hour(s)
Host
Partic.
6