POJ 1045

#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;
    }
}

关注我的公众号,当然,如果你对Java, Scala, Python等技术经验,以及编程日记,感兴趣的话。 

POJ 1045

技术网站地址: vmfor.com