编写题解 1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N; float sum=0; float sum1=0; scanf("%d"…… 题解列表 2022年08月31日 0 点赞 0 评论 652 浏览 评分:0.0
新手小白C语言之路 摘要:解题思路:do while循环注意事项:初始值的设立参考代码:#include<stdio.h>int main(){ int n,i=0; double s,x,a=2.0,b=1.0;…… 题解列表 2022年09月09日 0 点赞 0 评论 234 浏览 评分:0.0
一次性的循环 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,t;//t用于遍历 scanf("%d",&n); double a[n+1],b…… 题解列表 2022年09月18日 0 点赞 0 评论 211 浏览 评分:0.0
1018-有规律的数列求和 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >>n; int a[n]={2,3},b[n]…… 题解列表 2022年10月04日 0 点赞 0 评论 188 浏览 评分:0.0
1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <iomanip> using namespace std; int main() { int…… 题解列表 2022年10月09日 0 点赞 0 评论 155 浏览 评分:0.0
有规律的数列求和 摘要: #include #include using namespace std; int main() { int n,t; flo…… 题解列表 2022年10月10日 0 点赞 0 评论 227 浏览 评分: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 评论 262 浏览 评分:0.0
1018递归解法(Python) 摘要:注意事项:只关注上、下两数的关系即可参考代码:N = int(input())output = 0times = 0def count_sum(up_data, down_data) : glo…… 题解列表 2022年11月04日 0 点赞 0 评论 185 浏览 评分:0.0
[编程入门]有规律的数列求和 摘要:解题思路:N = eval(input())a1 = 1a2 = 2a3 = 0Sn = 0for i in range(1,N+1): Sn += a2/a1 a3 = a2 a2…… 题解列表 2022年11月15日 0 点赞 0 评论 174 浏览 评分:0.0
有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { float b=2,c=1,d,e,f=0; int a; scanf("%d",&a); for (floa…… 题解列表 2022年12月27日 0 点赞 0 评论 367 浏览 评分:0.0