#B. [GESP202409 一级] 1. 小杨购物

    Type: Default 1000ms 256MiB

[GESP202409 一级] 1. 小杨购物

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 元钱用于购物。商品 A 的单价是 a 元,商品 B 的单价是 b 元。小杨想购买相同数量的商品 A 和商品 B。 请你编写程序帮小杨计算出他最多能够购买多少个商品 A 和商品 B。

输入格式

第一行包含一个正整数 n,代表小杨用于购物的钱的金额。

第二行包含一个正整数 a,代表商品 A 的单价。

第三行包含一个正整数 b,代表商品 B 的单价。

输出格式

输出一行,包含一个整数,代表小杨最多能够购买的商品 A 和商品 B 的数量。

样例

12
1
2
4
13
1
2
4

提示

1n,a,b1051≤n,a,b≤10^5

C++ GESP 2024年9月 一级

Not Attended
Status
Done
Rule
OI
Problem
3
Start at
2024-9-29 18:30
End at
2024-10-8 2:30
Duration
200 hour(s)
Host
Partic.
41