标签:
#include<cstdio>
#include<cmath>
using namespace std;
const double pi = acos(-1.0);
int main(){
int d,h,v,e;
scanf("%d%d%d%d",&d,&h,&v,&e);
double s = pi * d * d / 4;
double sv = v / s;
if(sv <= e){
puts("NO");
return 0;
}
double t = h / (sv - e) ;
printf("YES\n%.6lf\n",t);
return 0;
}
[2016-05-01][codeforces][667A - Pouring Rain]
标签:
原文地址:http://www.cnblogs.com/qhy285571052/p/99068646c72454af613ba7287d876bf2.html