#include #include using namespace std; int main() { int test; cin>>test; double n[test],b[test]; double c[test]; double max[test]; for(int i=0;i>n[i]; for(int j=0;j>b[j]>>c[j]; } max[i]=0.00000; for(int j=0;jmax[i]) { max[i]=(1-c[j])/(b[j]+(1-c[j])); } } } for(int i=0;i