题解 | #牛牛的水杯#
牛牛的水杯
https://www.nowcoder.com/practice/c196c47c23394bf3bdd4f82a838df6bf
#include <math.h> int main(void) { int h, r; double res; scanf("%d %d", &h, &r); res = 10000/(3.14*h*r*r); printf("%d\n", (int)ceil(res)); return 0; }
#猹的刷题生涯#
牛牛的水杯
https://www.nowcoder.com/practice/c196c47c23394bf3bdd4f82a838df6bf
#include <math.h> int main(void) { int h, r; double res; scanf("%d %d", &h, &r); res = 10000/(3.14*h*r*r); printf("%d\n", (int)ceil(res)); return 0; }
相关推荐