标签:sqrt logs name term pac output single images integer
Description
Input
Output
Sample Input
1.0 1.0 1.0 9 0.01 0.031623 0.1 0.31623 1.0 3.1623 10.0 31.623 100.0
Sample Output
0.010 0.032 0.100 0.302 0.707 0.953 0.995 1.000 1.000
/* 一道无聊的数学题 推导出公式即可 */ #include<iostream> #include<cmath> #include<stdio.h> using namespace std; int main() { double vs, r, c; int n; cin>>vs>>r>>c; cin>>n; while(n-->0) { double w; cin>>w; double vr = r*c*w*vs*sqrt(1/(r*c*w*r*c*w+1)); printf("%.3lf\n", vr); } return 0; }
标签:sqrt logs name term pac output single images integer
原文地址:http://www.cnblogs.com/KennyRom/p/6294944.html