题目描述
blablabla
样例
blablabla
#include<iostream>
#include<cmath>
using namespace std;
#define PI acos(-1)
int main() {
int T;
cin>>T;
for (int C=1;C<=T;C++) {
double v,d;
cin>>v>>d;
double g=9.8;
double l=0,r=45;
while (r-l>1e-7) {
double mid=(l+r)/2;
if (v*v*sin(2*mid/180 * PI)/g>=d) r=mid;
else l=mid;
}
printf("Case #%d: %.8lf\n", C, r);
}
return 0;
}