POJ 1045
来源:互联网 发布:java接口开发 编辑:程序博客网 时间:2024/05/17 00:55
这题纯粹的数学计算,不过我虽然亲自算了一下,刚开始还真是有点困难滴,三角函数换来换去最后算错了;然后对了以后在提交又出问题了,编的内容是一样的,用C++提交就WA,而用C语言提交就AC了,现在还没明白什么回事,晕了,不过还是AC了。
代码如下:
#include <stdio.h>
#include <math.h>
int main()
{
int i,n;
double VR,VS,R,C,w;
scanf("%lf%lf%lf%d",&VS,&R,&C,&n);
for (i=0; i<n; i++)
{
scanf("%lf",&w);
VR=C*R*w*VS / sqrt(1+C*C*R*R*w*w);
printf("%.3lf\n",VR);
}
return 0;
}
- POJ-1045
- POJ 1045
- POJ 1045
- POJ 1045
- Poj--1045
- POJ 1045
- POJ 1045 Bode Plot
- Poj 1045 Bode Plot
- poj 1045 Bode Plot
- poj 1045,1047
- POJ 1045 解题报告
- POJ 1045:Bode Plot
- POJ 1045 Bode Plot
- POJ
- poj
- POJ
- POJ
- poj
- iOS应用性能调优的25个建议和技巧
- linux中Find命令的使用
- hdu 1556
- UVA 10026 Shoemaker's Problem 鞋匠的难题 贪心+排序
- _tcschrs,_tcslen,WideCharToMultiByte,MultiByteToWideChar,mbstowcs,wcstombs字符串操作
- POJ 1045
- 广度优先搜索
- ARM中的MOV指令
- UIView你知道多少
- CentOS 6.x 配置yum源
- java加密枝术
- Android Contacts模块基本知识
- C# winform中无边框窗体的移动
- IOS Developer Library