一个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int i,n,temp; d…… 题解列表 2025年11月04日 0 点赞 0 评论 153 浏览 评分:0.0
编写题解1019 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> double m = 0; int n=0;//输入开始时的高度m和弹起的次…… 题解列表 2025年11月01日 0 点赞 0 评论 120 浏览 评分:0.0
自由下落计算 摘要:解题思路:1. luodi 函数:- 首先处理了 n 为 1 和 2 的特殊情况,直接返回相应的计算结果。- 对于 n > 2 的情况,先计算出 luodi(m, n - 1) 和 …… 题解列表 2024年12月28日 0 点赞 0 评论 899 浏览 评分:0.0
1019运用递归的思想,简直easy。 摘要:解题思路:运用递归的思想,简直easy。注意事项:参考代码:#include<stdio.h>double luodi(double m ,double n){ if(n==1) return…… 题解列表 2024年12月22日 4 点赞 0 评论 899 浏览 评分:0.0
C语言之自由下落的距离计算建模是精髓 摘要:#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int m,n; float…… 题解列表 2024年12月09日 2 点赞 0 评论 965 浏览 评分:10.0
自由下落的距离计算C语言 摘要:参考代码:#include <stdio.h> int main() { int M,N,i; double h,m; h=0,m=0; scanf("%d %d",&M,&N);…… 题解列表 2024年12月08日 3 点赞 0 评论 700 浏览 评分:0.0
[编程入门]自由下落的距离计算--巨无敌容易看懂(C语言) 摘要:解题思路:将下落过程加上后,将每落地一次变成落地前的一半并加到路程中,并注意最后一次反弹时不加入到路程中注意事项:要注意变量的定义参考代码:#include<stdio.h>int main(){ …… 题解列表 2024年12月04日 8 点赞 0 评论 1135 浏览 评分:10.0
萌新C语言:咋还是for 摘要:#include<stdio.h>int main(){ int m,n; double h=0.0,s=0.0; scanf("%d %d",&m,&n); h=m; for(int i=1;i<=…… 题解列表 2024年11月27日 1 点赞 0 评论 294 浏览 评分:0.0
: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; float m,sum; scanf("%f%d",&m,&n); s…… 题解列表 2024年11月24日 1 点赞 1 评论 326 浏览 评分:9.9
[编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float i,M,N,c,d; scanf("%f %f",&M,&N); for(i=1;…… 题解列表 2024年11月18日 0 点赞 0 评论 260 浏览 评分:0.0