poj 1045(简单物理计算)

#include<iostream>
#include<cmath>
using namespace std;
int main(){
    int n;
    double Vr,Vs,R,C,w;
    cin>>Vs>>R>>C>>n;
    while(n--){
        cin>>w;
        Vr = Vs*w*C*R*(1/sqrt(1+(w*w*C*C*R*R)));
        printf("%.3lf\n",Vr);
    }
    return 0;
} 

 

posted @ 2021-07-28 16:48  智人心  阅读(40)  评论(0)    收藏  举报