delete pics to save space
This commit is contained in:
14
history_source/信息学奥赛一本通/1.2.6.4.cpp
Normal file
14
history_source/信息学奥赛一本通/1.2.6.4.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
#define pi 3.1415926535897
|
||||
int main()
|
||||
{
|
||||
double v,r,h;
|
||||
scanf("%lf%lf",&h,&r);
|
||||
v=h*pi*r*r;
|
||||
int ans=0;
|
||||
double k=20;
|
||||
while(k>0) k-=v,ans++;
|
||||
printf("%d\n",ans);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user