题解 2771: 大象喝水

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

写题解 2771: 大象喝水

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    /**    while(16534123412387……

编写题解 2771: 大象喝水

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double h,r,m;    cin>>h>>r……

简单又实用

摘要:参考代码:#include <iostream>#include <cmath>  // 包含cmath头文件来使用M_PI常量using namespace std;int main() {    ……

大象喝水 调用ceil函数

摘要:解题思路:调用ceil函数注意事项:参考代码:#include<stdio.h>#include<math.h>#define Pi 3.14159int main(){  int h,r;  dou……

2771: 大象喝水

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double h,r,m;    cin>>h>>r……

题解 2771: 大象喝水

摘要:解题思路:首先输入高和半径,然后求体积,再用20L除以体积。注意事项:在这里pi=3.14159。参考代码:#include <bits/stdc++.h>using namespace std;in……

大象喝水题解,,,,

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int h,r,t;    double v;    scanf("%d %d",&h,&r);    ……

C++简单解法

摘要:解题思路:此题属于简单题,需要知道向上取整的函数ceil(),其他的都是基础知识注意事项:参考代码:#include<iostream>#include<cmath>#defi……