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