ZOJ1070 Bode Plot

简介:
 简单的物理公式计算

复制代码
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;

int main(void)
{
    double vs,vr,r,c,w;
    int n,i;
    while(cin>>vs>>r>>c>>n)
    {
        for(i=0;i<n;i++)
        {
            cin>>w;
            vr=w*c*vs/sqrt(static_cast<double>(w*w+1.0));
            cout<<fixed<<setprecision(3)<<vr<<endl;
        }
    }
    return 0;
}
复制代码


本文转自Phinecos(洞庭散人)博客园博客,原文链接:http://www.cnblogs.com/phinecos/archive/2008/10/28/1320965.html,如需转载请自行联系原作者
目录
相关文章
|
7月前
codeforces 289 B. Polo the Penguin and Matrix
题目意思是在n*m的矩阵中,你可以对矩阵中的每个数加或者减d,求最少的操作次数,使得矩阵中所有的元素相同。 虽然在condeforces中被分到了dp一类,但完全可以通过排序,暴力的方法解决。
26 0
|
9月前
uva167 The Sultan's Successors
uva167 The Sultan's Successors
32 0
Leetcode-Easy 867.Transpose Matrix
Leetcode-Easy 867.Transpose Matrix
68 0
Leetcode-Easy 70. Climbing Stairs
Leetcode-Easy 70. Climbing Stairs
79 0
Leetcode-Easy 70. Climbing Stairs
|
人工智能 BI JavaScript
POJ 2260(ZOJ 1949) Error Correction 一个水题
Description A boolean matrix has the parity property when each row and each column has an even sum, i.
1118 0