题解 2812: 球弹跳高度的计算

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

筛选

C++简单解法

摘要:解题思路:重要的是要知道该从什么时候开始循环计算,是从松手就进入循环计算,还是第一次落地后才开始循环计算,只要理解了这个,题目思路就显而易见了。注意事项:参考代码:#include<iostre……

没有太多解释的代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main ( ){     double h ,h1  ,h2  ,h3  ;     doub……

球弹跳高度的计算

摘要:解题思路:注意事项:参考代码:h = float(input())s = hfor i in range(9):    h = h/2    s += h*2print(f"{s:g}")print(……

球弹跳高度

摘要:解题思路:累加高度注意事项:参考代码:h=int(input())m=hfor i in range(10):    m=m+h    h=h/2print(&#39;%g&#39;%m)print(……

2812 (C语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    double a,b,i,c=0;    scanf("%lf", &a);    b=a;    for……