这个题 感觉很简单的概率。 找一点 面积为s 则 m*n = s 那么 这是一条 双曲线
光看第一象限。 双曲线下面的 是小于s的 a*b 减去这一块 求出 大于s的 求出 s 占 ab的概率。
简单高中题。
#include <cstdio>
#include <algorithm>
#include <iostream>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <string>
#include <map>
#include <vector>
#include <set>
#include <queue>
#include <stack>
#include <cctype>
using namespace std;
#define ll long long
typedef unsigned long long ull;
#define maxn 30
#define INF 1<<30
int main (){
int num;
scanf("%d",&num);
while(num--){
double a,b,s;
scanf("%lf%lf%lf",&a,&b,&s);
if(s > a*b)
printf("0.000000%%\n");
else if(s <= 0.000001)
printf("100.000000%%\n");
else{
double m = a * b;
double ans = (m - s - s * log(m/s)) / m;
printf("%.6lf%%\n",ans*100);
}
}
return 0;
}