//UVA10491CowsAndCars
#include<cstdio>
#include<cmath>
#include<cstring>
int main() {
double a, b, c;
while(scanf("%lf%lf%lf", &a, &b, &c) == 3 && a) {
double ans = (a * b + b * (b - 1)) / ((a + b) * (a + b - c - 1));
printf("%.5lf\n", ans);
}
return 0;
}
/*
2 1 1
5 3 2
2000 2700 900
*/
UVA10491CowsAndCars
最新推荐文章于 2022-10-13 10:53:18 发布