#C. 编创小匠星球人口承载力估计(小学奥数)

    Type: Default 1000ms 256MiB

编创小匠星球人口承载力估计(小学奥数)

No testdata at current.

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.

Background

Description

假设编创小匠星球上的新生资源按恒定速度增长。照此测算,地球上现有资源加上新生资源可供x亿人生活a年,或供y亿人生活b年。

为了能够实现可持续发展,避免资源枯竭,地球最多能够养活多少亿人?

Format

Input

一行,包括四个正整数x,a,y,b,两个整数之间用单个空格隔开。x > y,a < b,ax < by,各整数均不大于10000

Output

一个实数z,表示地球最多养活z亿人,舍入到小数点后两位。

Samples

110 90 90 210
75.00

Limitation

创建新作业任务

Not Claimed
Status
Done
Problem
7
Open Since
2024-7-22 0:00
Deadline
2024-7-29 23:59
Extension
24 hour(s)