2812: 球弹跳高度的计算 摘要:解题思路:简单的数学规律问题注意事项:从第二次运动开始到结束,球的运动路程遵循规律,所以i从2开始计算。最后汇总时加上第一次的高度(初始高度)参考代码:#include <stdio.h>…… 题解列表 2025年11月21日 1 点赞 0 评论 85 浏览 评分:10.0
2025/7/31刷题记录 摘要:解题思路:注意事项:%g占位符可以将结果小数点第一个0(包括这个0)以后所以的数字都省略参考代码:#include<stdio.h>int main(){ int…… 题解列表 2025年07月31日 0 点赞 0 评论 166 浏览 评分:0.0
利用数学思维和for循环来解答,清晰明了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,h; double S=0,s,H; scanf("%d",&h); H=h…… 题解列表 2024年11月26日 1 点赞 0 评论 376 浏览 评分:0.0
没有太多解释的代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main ( ){ double h ,h1 ,h2 ,h3 ; doub…… 题解列表 2024年11月08日 0 点赞 0 评论 304 浏览 评分:0.0
球弹跳高度的计算(小白专用,不要技巧,好理解) 摘要:解题思路:按照小球运动状态;注意事项:虽然路程需要*2;但是参考代码通过一次循环嵌套实现;参考代码:#include<math.h>int main(){ int i = 1; double m=0,…… 题解列表 2024年10月28日 0 点赞 0 评论 433 浏览 评分:9.9
球弹跳高度的计算 摘要:解题思路:注意事项:参考代码:h = float(input())s = hfor i in range(9): h = h/2 s += h*2print(f"{s:g}")print(…… 题解列表 2024年07月30日 0 点赞 0 评论 507 浏览 评分:0.0
编写题解 2812: 球弹跳高度的计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int h,i; scanf("%d",&h); double h1=h,s=0.0; s=2.0*h1; fo…… 题解列表 2024年07月18日 0 点赞 0 评论 292 浏览 评分:0.0
题解 2812: 球弹跳高度的计算 (反弹与落地 示意图) 摘要: 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a,b,i,c=0; scanf("%lf", &a); b=a; for…… 题解列表 2024年03月18日 0 点赞 0 评论 256 浏览 评分:0.0
编写题解 2812: 球弹跳高度的计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int h;scanf("%d",&h);int i;double h1=h;double s=0;for(i=1…… 题解列表 2023年12月24日 0 点赞 0 评论 257 浏览 评分:0.0