题目:
代码:
#include<iostream>
#include<cmath>
using namespace std;
int main(){double r,c,h,pi,v,water;pi=3.14159;cin>>h>>r;v=pi*r*r*h/1000.0;water=20.0/v;c=ceil(water);cout<<c<<endl;return 0;
}
题目:
代码:
#include<iostream>
#include<cmath>
using namespace std;
int main(){double r,c,h,pi,v,water;pi=3.14159;cin>>h>>r;v=pi*r*r*h/1000.0;water=20.0/v;c=ceil(water);cout<<c<<endl;return 0;
}