编写题解 2771: 大象喝水 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double h,r,m; cin>>h>>r…… 题解列表 2023年12月16日 0 点赞 0 评论 188 浏览 评分:9.9
daxiangheshui0263461984565484752625+8749 摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){ int h,r; cin>>h>>r; double v; …… 题解列表 2023年04月29日 0 点赞 0 评论 384 浏览 评分:9.9
题解 2771: 大象喝水//制作不易,给个好评//附赠无限循环 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ /** while(16534123412387…… 题解列表 2023年12月02日 0 点赞 0 评论 204 浏览 评分:9.9
题解 2771:大象喝水(C代码) 摘要:解题思路: 20*1000/v(v为小圆桶体积),只要实现向正无穷取整就行。两种思路:1、通过ceil函数;2、通过(int)取整。注意事项: ceil函数返回的double型;而(int)是向零取整…… 题解列表 2022年10月11日 0 点赞 3 评论 1318 浏览 评分:9.9
2771: 大象喝水 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double h,r,m; cin>>h>>r…… 题解列表 2023年12月02日 0 点赞 0 评论 164 浏览 评分:9.9
题解 2771: 大象喝水 摘要:解题思路:首先输入高和半径,然后求体积,再用20L除以体积。注意事项:在这里pi=3.14159。参考代码:#include <bits/stdc++.h>using namespace std;in…… 题解列表 2023年11月25日 0 点赞 0 评论 203 浏览 评分:9.9
大象喝水题解,,,, 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int h,r,t; double v; scanf("%d %d",&h,&r); …… 题解列表 2024年12月05日 1 点赞 0 评论 283 浏览 评分:10.0
C++简单解法 摘要:解题思路:此题属于简单题,需要知道向上取整的函数ceil(),其他的都是基础知识注意事项:参考代码:#include<iostream>#include<cmath>#defi…… 题解列表 2025年03月03日 0 点赞 0 评论 125 浏览 评分:10.0