Files
OI-source/history_source/信息学奥赛一本通/1.2.6.4.cpp
2023-08-03 09:22:52 +08:00

15 lines
214 B
C++

#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;
}