题目 1019: [编程入门]自由下落的距离计算—常规求解方法 摘要:解题思路:for循环注意事项:浮点数用float或者double来表示参考代码:#include<stdio.h> #include<math.h> int main(void) { i…… 题解列表 2022年10月22日 0 点赞 0 评论 83 浏览 评分:0.0
简单代码 循环考虑 摘要:解题思路:注意事项:最后加上第一次下落距离并减去最后多循环的一次距离参考代码:#include <stdio.h>int main(){ float M,ft_h,sum_h,a; int…… 题解列表 2022年10月18日 0 点赞 0 评论 109 浏览 评分: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 评论 131 浏览 评分:0.0
自由下落的距离计算 摘要: #include #include using namespace std; int main() { float m, n, h=0, s…… 题解列表 2022年10月10日 0 点赞 0 评论 103 浏览 评分:0.0
1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <iomanip> using namespace std; int main() { int…… 题解列表 2022年10月09日 0 点赞 0 评论 426 浏览 评分:0.0
1019-自由下落的距离计算 语言:C++ 摘要:解题思路:注意事项:参考代码:/*/2:n次求和:前n-1次 */#include<iostream>using namespace std;int main(){ double m; int n; …… 题解列表 2022年10月04日 0 点赞 0 评论 110 浏览 评分:0.0
根据题目意思来 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double M,sum; int N,n; scanf("%lf %d",&M,&N); …… 题解列表 2022年09月18日 0 点赞 0 评论 525 浏览 评分:0.0
新手小白C语言之路 摘要:解题思路:数学思路+do while循环注意事项:i的初始量以及第一和最后的反弹次数路程计算参考代码:#include<stdio.h>int main(){ int m,n,i=0; d…… 题解列表 2022年09月09日 0 点赞 0 评论 293 浏览 评分:0.0
[编程入门]自由下落的距离计算--朴素方法 摘要:解题思路:利用等比数列的求和公式注意事项:第n次没走,算前n-1次参考代码:m,n=map(int,input().split())a=m/(2**n)b=m+2*m*(1-(0.5)**(n-1))…… 题解列表 2022年09月08日 0 点赞 0 评论 234 浏览 评分:0.0
[编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int m,n,i; double s1=0,s2=0,s=0,t;…… 题解列表 2022年09月06日 0 点赞 0 评论 194 浏览 评分:0.0