题解 2771: 大象喝水//制作不易,给个好评//附赠无限循环 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ /** while(16534123412387…… 题解列表 2023年12月02日 0 点赞 0 评论 416 浏览 评分:9.9
题解 2771: 大象喝水 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double h,r; cin>>h>>r; …… 题解列表 2023年12月02日 0 点赞 0 评论 375 浏览 评分:2.0
2771: 大象喝水 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double h,r,m; cin>>h>>r…… 题解列表 2023年12月02日 0 点赞 0 评论 353 浏览 评分:9.9
题解 2771: 大象喝水 摘要:解题思路:首先输入高和半径,然后求体积,再用20L除以体积。注意事项:在这里pi=3.14159。参考代码:#include <bits/stdc++.h>using namespace std;in…… 题解列表 2023年11月25日 0 点赞 0 评论 538 浏览 评分:9.9
2771: 大象喝水 摘要:```cpp #include #include #define pi 3.14159 using namespace std; int main() { int h, r;…… 题解列表 2023年11月22日 0 点赞 0 评论 292 浏览 评分:6.0
大象喝水 调用ceil函数 摘要:解题思路:调用ceil函数注意事项:参考代码:#include<stdio.h>#include<math.h>#define Pi 3.14159int main(){ int h,r; dou…… 题解列表 2023年11月13日 0 点赞 0 评论 663 浏览 评分:9.9
2771: 大象喝水 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> #define PI 3.14159 using nam…… 题解列表 2023年10月31日 0 点赞 0 评论 409 浏览 评分:0.0
大象喝水(用if解决小数问题) 摘要:解题思路: 这题难点主要在于处理没法整除,需要多喝一桶的问题 注意事项: 注意变量的类型 参考代码: ```c #include #define Pi 3.14159 int main…… 题解列表 2023年09月05日 1 点赞 0 评论 694 浏览 评分:8.0
大象喝水问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define pi 3.14159int main(){ int a,b,c,d; scanf("%d %d",&a,&…… 题解列表 2023年07月12日 0 点赞 0 评论 469 浏览 评分:0.0
简单又实用 摘要:参考代码:#include <iostream>#include <cmath> // 包含cmath头文件来使用M_PI常量using namespace std;int main() { …… 题解列表 2023年07月12日 0 点赞 0 评论 724 浏览 评分:9.9