题解 | 牛牛的水杯
牛牛的水杯
https://www.nowcoder.com/practice/c196c47c23394bf3bdd4f82a838df6bf
#include <stdio.h>
int main() {
int cup=0,r=0,h=0;
int L=0,j=0;
scanf("%d %d",&h,&r);
while(L<10000){
L+=3.14*h*r*r;
cup++;
}
printf("%d",cup);
return 0;
}
