#A. 例题4.4.6 小车问题

    Type: Default File IO: car 1000ms 256MiB

例题4.4.6 小车问题

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.

题目描述

甲、乙两人同时从A地出发要尽快同时赶到B地。

出发时A地有一辆小车,可是这辆小车除了驾驶员外只能带一人。

已知甲、乙两人的步行速度一样,且小于车的速度。问:怎样利用小车才能使两人尽快同时到达。

输入格式

仅一行,三个数据分别表示AB两地的距离s,人的步行速度a,车的速度b。

输出格式

两人同时到达B地需要的最短时间,保留2位小数。

样例数据

input




120 5 25



output


9.60



数据规模与约定

时间限制:1s1 \text {s}

空间限制:256MB256 \text {MB}

20201006-pm 基础代码测试

Not Attended
Status
Done
Rule
OI
Problem
4
Start at
2020-10-6 16:00
End at
2020-10-6 16:09
Duration
0.2 hour(s)
Host
Partic.
16