C++简单解法 解题思路:此题属于简单题,需要知道向上取整的函数ceil(),其他的都是基础知识注意事项:参考代码:#include#include#definepi3.14159usingnamespacestd;intmain(void){inth, 题解列表 2025年03月03日 0 点赞 0 评论 542 浏览 评分:10.0
daxiangheshui0263461984565484752625+8749 摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){ int h,r; cin>>h>>r; double v; …… 题解列表 2023年04月29日 0 点赞 0 评论 740 浏览 评分:9.9
写题解 2771: 大象喝水 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ /** while(16534123412387…… 题解列表 2023年12月23日 0 点赞 0 评论 546 浏览 评分:9.9
编写题解 2771: 大象喝水 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double h,r,m; cin>>h>>r…… 题解列表 2023年12月16日 0 点赞 0 评论 555 浏览 评分:9.9
题解 2771: 大象喝水//制作不易,给个好评//附赠无限循环 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ /** while(16534123412387…… 题解列表 2023年12月02日 0 点赞 0 评论 510 浏览 评分:9.9
2771: 大象喝水 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double h,r,m; cin>>h>>r…… 题解列表 2023年12月02日 0 点赞 0 评论 432 浏览 评分:9.9
题解 2771: 大象喝水 摘要:解题思路:首先输入高和半径,然后求体积,再用20L除以体积。注意事项:在这里pi=3.14159。参考代码:#include <bits/stdc++.h>using namespace std;in…… 题解列表 2023年11月25日 0 点赞 0 评论 679 浏览 评分:9.9
简单又实用 摘要:参考代码:#include <iostream>#include <cmath> // 包含cmath头文件来使用M_PI常量using namespace std;int main() { …… 题解列表 2023年07月12日 0 点赞 0 评论 838 浏览 评分:9.9
打错了,是计算三角形面积的答案,大家别误会 摘要:参考代码:#includeusing namespace std;int main(){ double a; cin>>a>>b>>c>>d>>e>>f; double s=sqrt…… 题解列表 2023年04月29日 0 点赞 0 评论 674 浏览 评分:9.9
2771: 大象喝水 ```cpp#include#includeusingnamespacestd;intmain(){inth,r;doublev;cin>>h>>r;v=3.14159*r*r*h;cout 题解列表 2023年01月11日 0 点赞 0 评论 623 浏览 评分:9.9