油炸坤坤好吃不贵 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Pi 3.14159int main(){ int r,h; scanf("%d%d", &h, &r); …… 题解列表 2023年05月27日 0 点赞 0 评论 921 浏览 评分:9.9
简单又实用 摘要:参考代码:#include <iostream>#include <cmath> // 包含cmath头文件来使用M_PI常量using namespace std;int main() { …… 题解列表 2023年07月12日 0 点赞 0 评论 838 浏览 评分:9.9
大象喝水问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define pi 3.14159int main(){ int a,b,c,d; scanf("%d %d",&a,&…… 题解列表 2023年07月12日 0 点赞 0 评论 574 浏览 评分:0.0
大象喝水(用if解决小数问题) 解题思路:这题难点主要在于处理没法整除,需要多喝一桶的问题注意事项:注意变量的类型参考代码:```c#include#definePi3.14159intmain(){inth,r;scanf("%d%d",&h,&r);doubles=Pi*r*r*h;intsum=20000;intt=sum/s 题解列表 2023年09月05日 1 点赞 0 评论 809 浏览 评分:8.0
2771: 大象喝水 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> #define PI 3.14159 using nam…… 题解列表 2023年10月31日 0 点赞 0 评论 508 浏览 评分:0.0
大象喝水 调用ceil函数 摘要:解题思路:调用ceil函数注意事项:参考代码:#include<stdio.h>#include<math.h>#define Pi 3.14159int main(){ int h,r; dou…… 题解列表 2023年11月13日 0 点赞 0 评论 803 浏览 评分:9.9
2771: 大象喝水 ```cpp#include#include#definepi3.14159usingnamespacestd;intmain(){inth,r;cin>>h>>r;cout 题解列表 2023年11月22日 0 点赞 0 评论 379 浏览 评分:6.0
题解 2771: 大象喝水 摘要:解题思路:首先输入高和半径,然后求体积,再用20L除以体积。注意事项:在这里pi=3.14159。参考代码:#include <bits/stdc++.h>using namespace std;in…… 题解列表 2023年11月25日 0 点赞 0 评论 679 浏览 评分: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: 大象喝水 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double h,r; cin>>h>>r; …… 题解列表 2023年12月02日 0 点赞 0 评论 477 浏览 评分:2.0