最简单解法,一看就会,不会的找我。 摘要:解题思路:注意事项:注意找到h,s和i的关系,一定要看清楚题目,总共经过的路程是,第N次落地的路程,就是说不包括第N次反弹的高度参考代码:#include<stdio.h>#include<math.…… 题解列表 2022年10月30日 0 点赞 1 评论 201 浏览 评分:9.9
综合利用位运算 和 求和公式 摘要:解题思路:由题意可得一个公比为1/2,首项为m的等比数列,根据等比数列前n项和公式即可得出结果,避免了循环或者递归注意事项:在计算总路程时要注意弹起后上升的距离还跟着一段等大的下降距离,而且第一段因为…… 题解列表 2022年10月25日 0 点赞 1 评论 178 浏览 评分:9.9
很简单的方法 摘要:解题思路:注意事项:参考代码://一球从M米高度自由下落,每次落地后返回原高度的一半,再落下。 它在第N次落地时反弹多高?共经过多少米? 保留两位小数#include <stdio.h>int mai…… 题解列表 2022年10月23日 0 点赞 0 评论 201 浏览 评分:9.9
题目 1019: [编程入门]自由下落的距离计算—常规求解方法 摘要:解题思路:for循环注意事项:浮点数用float或者double来表示参考代码:#include<stdio.h> #include<math.h> int main(void) { i…… 题解列表 2022年10月22日 0 点赞 0 评论 162 浏览 评分:0.0
简单代码 循环考虑 摘要:解题思路:注意事项:最后加上第一次下落距离并减去最后多循环的一次距离参考代码:#include <stdio.h>int main(){ float M,ft_h,sum_h,a; int…… 题解列表 2022年10月18日 0 点赞 0 评论 181 浏览 评分:9.9
自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,i,j; float s,h,M,s1; scanf("%f %d",&M,&N)…… 题解列表 2022年10月14日 0 点赞 0 评论 195 浏览 评分:0.0
自由下落的距离计算 摘要: #include #include using namespace std; int main() { float m, n, h=0, s…… 题解列表 2022年10月10日 0 点赞 0 评论 159 浏览 评分:0.0
1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <iomanip> using namespace std; int main() { int…… 题解列表 2022年10月09日 0 点赞 0 评论 473 浏览 评分:0.0
1019-自由下落的距离计算 语言:C++ 摘要:解题思路:注意事项:参考代码:/*/2:n次求和:前n-1次 */#include<iostream>using namespace std;int main(){ double m; int n; …… 题解列表 2022年10月04日 0 点赞 0 评论 175 浏览 评分:0.0
根据题目意思来 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double M,sum; int N,n; scanf("%lf %d",&M,&N); …… 题解列表 2022年09月18日 0 点赞 0 评论 778 浏览 评分:0.0