#1342. 购物
购物
题目描述
你有 元钱,每瓶饮料 元,每 个空瓶可以换一瓶新饮料,求最多可以喝多少瓶饮料。
输入格式
一行,三个正整数 ( 且 )。
输出格式
输出一行,一个整数,表示最多可以喝多少瓶饮料。
输入样例
20 2 5
输出样例
12
Statistics
Related
In following contests:
你有 n 元钱,每瓶饮料 r 元,每 p 个空瓶可以换一瓶新饮料,求最多可以喝多少瓶饮料。
一行,三个正整数 n,r,p(n,r,p≤109 且 p≥2)。
输出一行,一个整数,表示最多可以喝多少瓶饮料。
20 2 5
12
In following contests:
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.