#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int cs=1,t;
int main(){
ios::sync_with_stdio(0);
cout<<fixed<<setprecision(3);
cin>>t;
while(t--){
cout<<"Case "<<cs++<<": ";
int d,v,u;
cin>>d>>v>>u;
if(v==0||v>=u)
cout<<"can't determine"<<endl;
else{
double t1,t2;
t1=double(d)/u;
t2=double(d)/(u*sin(acos(double(v)/u)));
cout<<t2-t1<<endl;
}
}
}
#include <iomanip>
#include <cmath>
using namespace std;
int cs=1,t;
int main(){
ios::sync_with_stdio(0);
cout<<fixed<<setprecision(3);
cin>>t;
while(t--){
cout<<"Case "<<cs++<<": ";
int d,v,u;
cin>>d>>v>>u;
if(v==0||v>=u)
cout<<"can't determine"<<endl;
else{
double t1,t2;
t1=double(d)/u;
t2=double(d)/(u*sin(acos(double(v)/u)));
cout<<t2-t1<<endl;
}
}
}
Comments
Post a Comment