프로그램 명: ncpc_rain(special judge)
제한시간: 1 초
[문제요약]
강수량은 밀리미터 단위로 측정이 된다.
비가 밀리미터 단위로 눈금이 있는 수직 튜브에 담긴다.
비가 멈춘 후 비의 양을 측정할 수 있다.
문제는 이 튜브가 높이 L 밀리미터에서 새고 있다.
강수량이 이 부분위로 올라오면 시간당 K 밀리미터 단위로 비가 샌다.
튜브는 넘치지 않는다고 가정 한다.
또한 항상 고르게 오고 ,
증발하지도 않는다.
Rainfall is measured in millimeters. The rain is collected in a
vertical transparent tube with millimeter markings, and once the
rain has stopped falling, one can check the height of the water in
the tube.
In our problem, the tube unfortunately has a leak at height L
millimeters (mm). If the water level is above the leak then water
drains from the tube at a rate of K millimeters per hour (mm/h).
We want to figure out how much rain fell during a particular
rainfall. We assume that the tube is high enough that it does
not overflow.
We also assume that rain falls at an (unknown) uniform rate during a rainfall, and that water does not evaporate
from the tube. The height of the leak itself is also negligible.
입력
The input is a line with five positive numbers: L K T1 T2 H where
-
L is where the leak is (mm)
-
K is the rate at which water leaks (mm/h)
-
T1 is the duration of the rainfall (h)
- T2 is the time between the end of the rainfall and
- the observation of the water level (h) H is the water level in the tube when we observe it (mm)
Each number is at least 0.01 and at most 1000.00, and each is given with two decimals.
출력
One line with two floating point numbers F1,F2 where
- F1 is the smallest rainfall in millimeters that would result in the given observation,
- F2 is the largest rainfall in
millimeters that would result in the given observation.
Values with either absolute or relative error smaller than 10^-6 are acceptable.
입출력 예
입력
80.00 0.50 2.00 1.50 80.00
출력
80.000000 80.759403
입력
150.00 1.00 100.00 150.00 100.00
출력
100.000000 100.000000
출처:ncpc/2009/Problem D
[질/답]
[제출 현황]
[푼 후(0)]