1160. Date with MM

单点时限: 2.0 sec

内存限制: 256 MB

Tomorrow I will have a date with a MM but unfortunatelly I forgot the specific time.

It seems to be between M o’clock & N o’clock.So I choose sometime between the span to

be there and wait for her(the waiting hours should be within t hours).

So what’s the probability can I meet her(assuming that she will never wait for me)

输入格式

3 real numbers M,N,T

输出格式

The probability should be remain 3 digits of fraction

样例

Input
8.00 9.00 0.5
hint:0.5表示半个小时,8.5表示8点半
Output
0.375

26 人解决,44 人已尝试。

32 份提交通过,共有 214 份提交。

5.7 EMB 奖励。

创建: 17 年前.

修改: 6 年,8 月前.

最后提交: 2 年,5 月前.

来源: partychen

题目标签