题解 | #牛牛的水杯#
牛牛的水杯
https://www.nowcoder.com/practice/c196c47c23394bf3bdd4f82a838df6bf
#include <stdio.h>
int main() {
int a, b;
//需要喝10*10^3立方厘米
scanf("%d %d",&a,&b);
if (10000.0/(a*b)-(10000/(a*b))!=0) {
a=10000/(a*b*3.14*b)+1;
}else {
a=10000/(a*b*3.14*b);
}
printf("%d",a);
return 0;
}

