编写题解 1018: [编程入门]有规律的数列求和(C语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int N; float sum; float a=2,b=1; scanf("%d"…… 题解列表 2022年01月11日 0 点赞 0 评论 503 浏览 评分:0.0
觉得现有的c++题解太麻烦所以来分享一下 摘要:解题思路:一道小水题,却浪费了我很长时间,还是自己做题的思维有待提高,这个规律很容易看出来,就是a/b 然后下一项就是a+b除以a注意事项:用代码实现的话需要稍作思考,我一开始写的是错的直接循环然后a…… 题解列表 2022年01月14日 0 点赞 0 评论 207 浏览 评分:0.0
[编程入门]有规律的数列求和-题解(C++代码) 摘要:解题思路:for语句循环注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double a…… 题解列表 2022年01月16日 0 点赞 0 评论 131 浏览 评分:0.0
有规律的数列求和(c语言) 摘要:参考代码:#include<stdio.h>int main(){ double Sn=0,i,j,n,a=2.0,b=1.0; scanf("%lf",&n); Sn+=a/b; …… 题解列表 2022年01月18日 0 点赞 0 评论 447 浏览 评分:0.0
Java 递归简 单 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { Scanner scanner = new Scanner(System.in); …… 题解列表 2022年02月01日 0 点赞 0 评论 310 浏览 评分:0.0
1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double Sn=0,an=0,n,i,m,a=2.0,b=1.0; scanf("%lf",&n…… 题解列表 2022年02月08日 0 点赞 0 评论 128 浏览 评分:0.0
[编程入门]有规律的数列求和 题解 摘要:解题思路:有点类似斐波那契数列注意事项:强制类型转换参考代码:#include <stdio.h>//求以下三数的和,保留2位小数 1~a之和 1~b的平方和 1~c的倒数和int main() { …… 题解列表 2022年02月24日 0 点赞 0 评论 208 浏览 评分:0.0
编写题解 1018: [编程入门]有规律的数列求和--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>#include<iomanip>using namespace std;int main (){ …… 题解列表 2022年03月06日 0 点赞 0 评论 523 浏览 评分: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 评论 259 浏览 评分:0.0
[编程入门]有规律的数列求和 摘要:解题思路:注意事项: 想复杂了参考代码:#includeint main() { float i=2.0,j=1.0,k,J,n,N; scanf("%f",&N); …… 题解列表 2022年03月07日 0 点赞 0 评论 184 浏览 评分:0.0