https://www.luogu.com.cn/contest/210367
再附一个qz,不然等一下被举报了:
#include<stdio.h>
#include <math.h>
using namespace std;
int main(){
int a = 1;
float h, r, v, b;
scanf("%f %f", &h, &r);
r = r / 100;
h = h / 100;
v = pow(r, 2) * 3.14 * h*1.0;
b = v;
while (b < 0.02)
{
b = b + v;
a++;
}
printf("%d", a);
return 0;
}
题目,为什么92分