您的位置:首页 > 其它

POJ 1045

2015-06-09 13:26 288 查看
#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;

int main()
{
//freopen("acm.acm","r",stdin);
double vs;
double r;
double c;
double w;
int n;
cin>>vs>>r>>c>>n;
while(n --)
{
cin>>w;
cout<<setiosflags(ios::fixed)<<setprecision(3)<<c*w*vs*sqrt(1.0/(w*w+1))<<endl;
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: