2771: 大象喝水 通俗易懂 摘要:解题思路:注意事项:eg 20/19 结果为1,但是实际上大象要喝两桶。所以分两种情况 20/V==0 或20/V!=0。都是成功提交过的,…… 题解列表 2026年05月23日 0 点赞 0 评论 27 浏览 评分:0.0
欢迎借鉴,如有错误,望指点 摘要:解题思路:注意事项:参考代码:pi=3.14159def c_l(x,y): z=(pi*y*y*x)/1000 j =20 / z &…… 题解列表 2026年04月25日 0 点赞 0 评论 103 浏览 评分:0.0
2025.7.21刷题记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>const double pi = 3.14159;int main(){ //大象要喝的水量&n…… 题解列表 2025年07月21日 0 点赞 0 评论 426 浏览 评分:2.0
大象喝水while循环 摘要:h,r= map(int, input().strip().split())Pi = 3.14159v = Pi * r * r * hn = 0while n * v <= 20000: &n…… 题解列表 2025年03月07日 0 点赞 0 评论 708 浏览 评分:0.0
C++简单解法 摘要:解题思路:此题属于简单题,需要知道向上取整的函数ceil(),其他的都是基础知识注意事项:参考代码:#include<iostream>#include<cmath>#defi…… 题解列表 2025年03月03日 0 点赞 0 评论 432 浏览 评分:10.0
大象喝水题解,,,, 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int h,r,t; double v; scanf("%d %d",&h,&r); …… 题解列表 2024年12月05日 1 点赞 0 评论 719 浏览 评分:10.0
三行秒杀大象喝水 摘要:解题思路:map函数接收输入注意事项:至少喝几桶水用向上取整参考代码:import mathh,r=map(int,input().split())print(math.ceil(20000/(h*m…… 题解列表 2024年11月30日 0 点赞 0 评论 654 浏览 评分:0.0
2771: 大象喝水(简单) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define PI 3.14159int main(){ int r,h; double sum=0,num=0; …… 题解列表 2024年11月04日 0 点赞 0 评论 511 浏览 评分:0.0
不骗人,新手必看!!!!!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define PI 3.14159265358979323846int main() { int h, r; scanf…… 题解列表 2024年11月01日 0 点赞 0 评论 461 浏览 评分:6.0
高质量的大象喝水 摘要:解题思路:注意事项:ceil是在有小数的情况下向上取整参考代码:#include#define PI 3.14159265358979323846int main() { int h, r; …… 题解列表 2024年11月01日 0 点赞 0 评论 419 浏览 评分:6.0