题解 | #牛牛的水杯#

牛牛的水杯

https://www.nowcoder.com/practice/c196c47c23394bf3bdd4f82a838df6bf

#include <stdio.h>

int main() {
    int a, b;
    float s;
    scanf("%d %d",&a,&b);
    s=10000.0/(3.14*a*b*b);
    printf("%d",(int)((int)s==s?s:s+1));
    return 0;
}

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务