T1019 自由下落 代码 --简明扼要 摘要:解题思路:1000 500 1 125 2 62.5 3 31.25 4注意事项:参考代码:m,n=map(int,input().spli…… 题解列表 2025年05月04日 0 点赞 0 评论 682 浏览 评分:0.0
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:# 读取输入数据,M是初始高度,N是落地次数M, N = map(int, input().split())height = M # 当前高度,初始为Mtot…… 题解列表 2025年08月10日 0 点赞 0 评论 598 浏览 评分:0.0
编写题解1019 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> double m = 0; int n=0;//输入开始时的高度m和弹起的次…… 题解列表 2025年11月01日 0 点赞 0 评论 435 浏览 评分:0.0
一个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int i,n,temp; d…… 题解列表 2025年11月04日 1 点赞 0 评论 833 浏览 评分:0.0
找准/2的规律及边界 摘要:解题思路:每次落地之后将要弹起的高度就是1/2的n次幂,所以弹起高度好求。但是总高度需要初始m累加经过的弹起高度,但麻烦的是这里的总高度只计算到落地,而不包括落地之后应该有的下一次弹起,这就导致总高度…… 题解列表 2026年07月11日 1 点赞 0 评论 38 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.9 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio>int main(){ float m,sum=0; int n; scanf("%f%d",&m,&n); s…… 题解列表 2017年07月28日 0 点赞 0 评论 1254 浏览 评分:2.0
清晰明了不要想太多 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int N, i; double sum1=0, sum2=0, M; scanf("%lf%d", &M, …… 题解列表 2022年03月09日 0 点赞 0 评论 473 浏览 评分:2.0
1019: [编程入门]自由下落的距离计算(用了一点点C语言) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>using namespace std; int main(){ double m,n; …… 题解列表 2024年11月06日 0 点赞 1 评论 521 浏览 评分:2.0
[编程入门]自由下落的距离计算-题解(Python代码) 摘要:解题思路:M,N=map(int,input().strip().split())total_meter_num=0for i in range(N): now_high=M/2 tota…… 题解列表 2020年07月02日 0 点赞 0 评论 1281 浏览 评分:4.7
C语言程序设计教程(第三版)课后习题6.9 (C语言代码) 摘要:解题思路:注意事项:参考代码:请大家帮我看看,到底哪里不对,导致答案错误/* 一球从M米高度自由下落,每次落地后返回原高度的一半,再落下。 它在第N次落地时反弹多高?共经过多少米? 保留两位小数*/#…… 题解列表 2017年07月18日 1 点赞 3 评论 943 浏览 评分:6.0