1019: [编程入门]自由下落的距离计算(简单的解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; double n,m,k=0,num=0; scanf("%lf %lf",&m…… 题解列表 2024年11月15日 0 点赞 0 评论 108 浏览 评分:0.0
[编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float i,M,N,c,d; scanf("%f %f",&M,&N); for(i=1;…… 题解列表 2024年11月18日 0 点赞 0 评论 107 浏览 评分:0.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 评论 176 浏览 评分:0.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日 2 点赞 0 评论 403 浏览 评分:0.0
1019运用递归的思想,简直easy。 摘要:解题思路:运用递归的思想,简直easy。注意事项:参考代码:#include<stdio.h>double luodi(double m ,double n){ if(n==1) return…… 题解列表 2024年12月22日 2 点赞 0 评论 485 浏览 评分:0.0
自由下落计算 摘要:解题思路:1. luodi 函数:- 首先处理了 n 为 1 和 2 的特殊情况,直接返回相应的计算结果。- 对于 n > 2 的情况,先计算出 luodi(m, n - 1) 和 …… 题解列表 2024年12月28日 0 点赞 0 评论 450 浏览 评分: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 评论 301 浏览 评分:0.0
自由下落的距离问题——Python 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().strip().split())h=a*1/2**bs=aforiinrange(…… 题解列表 2025年01月31日 0 点赞 0 评论 273 浏览 评分:0.0
普通的循环遍历就能实现 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double m; double …… 题解列表 2025年02月07日 1 点赞 0 评论 366 浏览 评分:0.0
数学方法-推公式--------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ double m, n;&nbs…… 题解列表 2025年03月19日 0 点赞 0 评论 145 浏览 评分:0.0