1018递归解法(Python) 摘要:注意事项:只关注上、下两数的关系即可参考代码:N = int(input())output = 0times = 0def count_sum(up_data, down_data) : glo…… 题解列表 2022年11月04日 0 点赞 0 评论 116 浏览 评分:0.0
1018: [编程入门]有规律的数列求和(C语言) 摘要:题目:有一分数序列: 2/1 3/2 5/3 8/5 13/8 21/13......求出这个数列的前N项之和,保留两位小数。解题思路:设分子为m,分母为n,定义为浮点类型,用两个变量辅助,a用来存储…… 题解列表 2022年11月03日 0 点赞 0 评论 183 浏览 评分:0.0
小白的初次尝试 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ double sum=0.00,son=2.00,mom=1; int N; scanf("%d",&N); …… 题解列表 2022年10月27日 0 点赞 0 评论 141 浏览 评分:9.9
《连分数实现斐波那契数列比值求和》 摘要:解题思路:首先连分数的定义数列如下:1,1/1+1 ,1 / (1 + ( 1 / ( 1 + 1)).......而且对应的各项的值为,1,1/2,2/3,3/5.........我们不难发现从第二…… 题解列表 2022年10月26日 0 点赞 0 评论 254 浏览 评分:9.9
不知道为什么运行错误 摘要:解题思路:先构建1,2,3,5,8******这个数列存在malloc出来的数组里,再进行后一项除前一项操作注意事项:进行除法,注意强制类型转换,需要对每一个int都转参考代码:#include <s…… 题解列表 2022年10月23日 0 点赞 0 评论 218 浏览 评分:9.9
有规律的数列求和 摘要:解题思路:采用两个数组,一个数组存分母,另一个数组存分子注意事项:参考代码:# include <stdio.h>int main(){ int i,N; float nume[1000]…… 题解列表 2022年10月16日 0 点赞 0 评论 159 浏览 评分:9.9
有规律的数列求和 摘要: #include #include using namespace std; int main() { int n,t; flo…… 题解列表 2022年10月10日 0 点赞 0 评论 165 浏览 评分:0.0
编写题解 1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double A,sum=0,i,n,x=2,y=1,c1,c2; scanf("%lf",…… 题解列表 2022年10月09日 0 点赞 0 评论 163 浏览 评分:9.9
1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <iomanip> using namespace std; int main() { int…… 题解列表 2022年10月09日 0 点赞 0 评论 104 浏览 评分:0.0
简化运算规律数列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n; scanf("%d",&n); double a[100],sum=0; a[0]=2/1; …… 题解列表 2022年10月08日 0 点赞 0 评论 167 浏览 评分:9.9