1045.cpp
来自「北京大学的一些acm代码。还有一些资料。」· C++ 代码 · 共 25 行
CPP
25 行
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
double VS, R, C;
int n;
cin>>VS>>R>>C>>n;
//freopen("test.txt", "r" , stdin);
double *W = new double[n];
for(int i = 0; i < n; i++)
{
cin>>W[i];
}
for(i = 0; i < n; i++)
{
printf("%1.3f\n", VS/sqrt(R*R + 1.0/(W[i]*W[i]*C*C))*R);
}
delete []W;
W = NULL;
//fclose(stdin);
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?