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