找准/2的规律及边界 摘要:解题思路:每次落地之后将要弹起的高度就是1/2的n次幂,所以弹起高度好求。但是总高度需要初始m累加经过的弹起高度,但麻烦的是这里的总高度只计算到落地,而不包括落地之后应该有的下一次弹起,这就导致总高度…… 题解列表 2026年07月11日 1 点赞 0 评论 38 浏览 评分:0.0
一个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int i,n,temp; d…… 题解列表 2025年11月04日 1 点赞 0 评论 832 浏览 评分:0.0
编写题解1019 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> double m = 0; int n=0;//输入开始时的高度m和弹起的次…… 题解列表 2025年11月01日 0 点赞 0 评论 434 浏览 评分:0.0
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:# 读取输入数据,M是初始高度,N是落地次数M, N = map(int, input().split())height = M # 当前高度,初始为Mtot…… 题解列表 2025年08月10日 0 点赞 0 评论 596 浏览 评分:0.0
[编程入门]自由下落的距离计算 摘要:解题思路:很简单注意事项:无参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){…… 题解列表 2025年06月06日 2 点赞 0 评论 799 浏览 评分:6.0
T1019 自由下落 代码 --简明扼要 摘要:解题思路:1000 500 1 125 2 62.5 3 31.25 4注意事项:参考代码:m,n=map(int,input().spli…… 题解列表 2025年05月04日 0 点赞 0 评论 681 浏览 评分:0.0
数学方法-推公式--------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ double m, n;&nbs…… 题解列表 2025年03月19日 0 点赞 0 评论 639 浏览 评分:0.0
普通的循环遍历就能实现 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double m; double …… 题解列表 2025年02月07日 1 点赞 0 评论 902 浏览 评分:0.0
自由下落的距离问题——Python 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().strip().split())h=a*1/2**bs=aforiinrange(…… 题解列表 2025年01月31日 0 点赞 0 评论 698 浏览 评分:0.0
1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:m,n=map(int,input().split())sum=0for i in range(1,n+1): m=0.5*m &n…… 题解列表 2025年01月20日 0 点赞 0 评论 798 浏览 评分:0.0