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