题解 | #牛牛的水杯#

牛牛的水杯

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

#include <math.h>
#include <stdio.h>
#define Pi 3.14

int main(void)
{
    int h,r,all,op=0,num;
    scanf("%d %d",&h,&r);
    all=Pi*h*r*r;
    if(10000%all)op=1;
    num=10000/all+op;
    printf("%d\n",num);
}

算法刷题(入门) 文章被收录于专栏

入门算法题目

全部评论

相关推荐

牛客765689665号:没有实习是硬伤,央国企看学历
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务