#include using namespace std; int main(){ int m; cin>>m; double a,b,t; double e=exp(1); double ipsilon=pow(10,-9); double upper,lower,middle; for(int i=0;i>a>>b>>t; if(b==0){ middle=pow(t,1.0/a); goto travel; } if(a==0){ middle=pow(e,pow(t,1.0/b)); goto travel; } upper=10; lower=1; t=pow(t,1.0/b); while(upper-lower>ipsilon){ middle=(upper+lower)/2; if(pow(middle,a/b)*log(middle)