编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:# 读取输入数据,M是初始高度,N是落地次数M, N = map(int, input().split())height = M # 当前高度,初始为Mtot…… 题解列表 2025年08月10日 0 点赞 0 评论 56 浏览 评分:0.0
[编程入门]自由下落的距离计算 摘要:解题思路:很简单注意事项:无参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){…… 题解列表 2025年06月06日 2 点赞 0 评论 285 浏览 评分:10.0
T1019 自由下落 代码 --简明扼要 摘要:解题思路:1000 500 1 125 2 62.5 3 31.25 4注意事项:参考代码:m,n=map(int,input().spli…… 题解列表 2025年05月04日 0 点赞 0 评论 300 浏览 评分:0.0
数学方法-推公式--------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ double m, n;&nbs…… 题解列表 2025年03月19日 0 点赞 0 评论 370 浏览 评分:0.0
普通的循环遍历就能实现 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double m; double …… 题解列表 2025年02月07日 1 点赞 0 评论 601 浏览 评分:0.0
自由下落的距离问题——Python 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().strip().split())h=a*1/2**bs=aforiinrange(…… 题解列表 2025年01月31日 0 点赞 0 评论 440 浏览 评分: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 评论 512 浏览 评分:0.0
自由下落计算 摘要:解题思路:1. luodi 函数:- 首先处理了 n 为 1 和 2 的特殊情况,直接返回相应的计算结果。- 对于 n > 2 的情况,先计算出 luodi(m, n - 1) 和 …… 题解列表 2024年12月28日 0 点赞 0 评论 717 浏览 评分:0.0
1019运用递归的思想,简直easy。 摘要:解题思路:运用递归的思想,简直easy。注意事项:参考代码:#include<stdio.h>double luodi(double m ,double n){ if(n==1) return…… 题解列表 2024年12月22日 2 点赞 0 评论 770 浏览 评分:0.0
C语言之自由下落的距离计算建模是精髓 摘要:#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int m,n; float…… 题解列表 2024年12月09日 2 点赞 0 评论 745 浏览 评分:10.0