Joining with Friend
题目描述
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=117&page=show_problem&problem=2769
[PDF](https://uva.onlinejudge.org/external/117/p11722.pdf)
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11722/ca9f04cf54605dd5de135fdfc34cacfe5de71169.png)
输入输出格式
输入格式
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11722/d2dabf81784f1e8ae2e1a0c3ba27e0c1dfc8129d.png)
输出格式
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11722/f3a4f7c487f9edeb98bb9c534f2de161b274194a.png)
输入输出样例
输入样例 #1
2
1000 1040 1000 1040 20
720 750 730 760 16
输出样例 #1
Case #1: 0.75000000
Case #2: 0.67111111