题解 2771: 大象喝水

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

筛选

大象喝水题解,,,,

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

C++简单解法

解题思路:此题属于简单题,需要知道向上取整的函数ceil(),其他的都是基础知识注意事项:参考代码:#include#include#definepi3.14159usingnamespacestd;intmain(void){inth,