编写题解 1018: [编程入门]有规律的数列求和--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>#include<iomanip>using namespace std;int main (){ …… 题解列表 2022年03月06日 0 点赞 0 评论 484 浏览 评分:0.0
有规律的数列求和(python) 摘要:N = int(input())a = 1b = 2sum_ = 0for i in range(1,N+1): sum_ += b/a temp = a a = b b = …… 题解列表 2022年03月06日 0 点赞 0 评论 221 浏览 评分:0.0
[编程入门]有规律的数列求和 摘要:解题思路:注意事项: 想复杂了参考代码:#includeint main() { float i=2.0,j=1.0,k,J,n,N; scanf("%f",&N); …… 题解列表 2022年03月07日 0 点赞 0 评论 152 浏览 评分:0.0
编写题解 1018: [编程入门]有规律的数列求和python 摘要:解题思路:不用while,用for注意事项:参考代码:N=int(input())c,d=2,1sn=a=c/dfor i in range(1,N): c,d=c+d,c a=c/d …… 题解列表 2022年03月10日 0 点赞 0 评论 479 浏览 评分:9.9
思路很简单,重要的就是要细心。 摘要:解题思路: 这一道题目其实对我来说最重要的就是要有敏锐的观察力,能观察到这个数列的规律,每一个项就是每一项的规律,然后然后其实音乐就知道是要用到循环,但是不知道要怎么用,然后就参考了那个别人的体检,别…… 题解列表 2022年03月13日 0 点赞 0 评论 167 浏览 评分:9.9
编写题解 1018: [编程入门]有规律的数列求和 摘要:解题思路:有一分数序列: 2/1 3/2 5/3 8/5 13/8 21/13...... 求出这个数列的前N项之和,保留两位小数。方法一:如果把数列规律认为a/b=2/1;c/d=3/2;m=a+c…… 题解列表 2022年03月14日 0 点赞 0 评论 127 浏览 评分:0.0
刷题记录(头秃第n天) 摘要:解题思路:看规律,是斐波那契数列注意事项:参考代码:#include<stdio.h>#include<math.h>#define N 100double number(double n);int …… 题解列表 2022年03月21日 0 点赞 0 评论 180 浏览 评分:9.9
数组递归,还能求第n个数 摘要:参考代码:#include<stdio.h>int main(){float a[100]={2,3}; float b[100]={1,2}; int n=0; scanf("%d",&n); i…… 题解列表 2022年03月23日 0 点赞 0 评论 195 浏览 评分:0.0
有规律的数列求和 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main {public static void main(String args[]) { Scanne…… 题解列表 2022年03月25日 0 点赞 0 评论 208 浏览 评分:0.0
whlie循环解决数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a=2.0,b=1.0,c,sum=0.0; int n; scanf("%d",&n); whi…… 题解列表 2022年03月31日 0 点赞 0 评论 234 浏览 评分:9.9