欢迎借鉴,如有错误,望指点 摘要:解题思路:注意事项:参考代码:pi=3.14159def c_l(x,y): z=(pi*y*y*x)/1000 j =20 / z &…… 题解列表 2026年04月25日 0 点赞 0 评论 206 浏览 评分:0.0
大象喝水while循环 h,r=map(int,input().strip().split())Pi=3.14159v=Pi*r*r*hn=0whilen*v<=20000:n+=1print(n) 题解列表 2025年03月07日 0 点赞 0 评论 788 浏览 评分:0.0
三行秒杀大象喝水 解题思路:map函数接收输入注意事项:至少喝几桶水用向上取整参考代码:importmathh,r=map(int,input().split())print(math.ceil(20000/(h*math.pi*r*r))) 题解列表 2024年11月30日 0 点赞 0 评论 730 浏览 评分:0.0
编写题解 2771:大象喝水,python超简单 摘要:解题思路:注意事项:输出时舍去多余的0因为会估算参考代码:h,r = map(int,input().split()) #读取高度和半径 pi = 3.14159v_1 = pi * r ** 2…… 题解列表 2024年03月15日 0 点赞 0 评论 1133 浏览 评分:6.0
2771: 大象喝水 摘要:解题思路:注意事项:参考代码:import math h,r = map(int,input().strip().split()) v = math.pi * h * r**2 print(mat…… 题解列表 2022年11月24日 0 点赞 0 评论 872 浏览 评分:6.0