编写题解 1015: [编程入门]求和训练 摘要:参考代码:m = list(map(int, input().split(" "))) s = 0 for i in range(1, m[0]+1): s += i for i in…… 题解列表 2023年03月16日 0 点赞 0 评论 187 浏览 评分:9.9
c++求和训练 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c,sum=0,sqrt=0,s…… 题解列表 2023年03月08日 0 点赞 0 评论 93 浏览 评分:0.0
[编程入门]求和训练-题解 摘要:解题思路:利用三次循环进行求解,将a,b,c中的值依次加到Sn上注意事项:int类型可以赋值给float类型,不会损失精度c部分的除法,分子用1.0,可以将k转换为浮点数进行运算,得到的值记为浮点数编…… 题解列表 2023年03月08日 0 点赞 0 评论 86 浏览 评分:9.9
编写题解 1015: [编程入门]求和训练 摘要:```c #include #include #include #include int main() { double a = 0.0, b = 0.0, c = 0.0; …… 题解列表 2023年03月01日 0 点赞 0 评论 111 浏览 评分:0.0
只想说明一个小的细节问题 摘要:解题思路:很简单注意事项:注意数学小问题,分母不为0!!!!!!参考代码:#include<stdio.h>int main(){ int a,b,c; float i; double s1=0.0,…… 题解列表 2023年03月01日 0 点赞 0 评论 87 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:float 类型在做除法时数据类型都要是float参考代码:#include<stdio.h>#include<math.h>int i;int Sum(int a){ …… 题解列表 2023年02月25日 0 点赞 0 评论 70 浏览 评分:0.0
1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())a1,b1,c1=0,0,0for i in range(a+1): a1+=ifor j in ran…… 题解列表 2023年02月15日 0 点赞 0 评论 60 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:建立三个for循环依次求和a,b,c参考代码:a, b, c = map(int, input().split())A = 0for i in range(1, a+1): A += …… 题解列表 2023年01月15日 0 点赞 0 评论 63 浏览 评分:0.0
求和训练(python) 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().strip().split())e,r,t=0,0,0for i in range(1,a+1): e+=i for…… 题解列表 2023年01月12日 0 点赞 0 评论 509 浏览 评分:9.9
通过递归解决各种问题 摘要:解题思路:找到递归思路注意事项:看清题目参考代码:#include<stdio.h>int qiua(int a){ if(a==1) return 1; return qiua(a-1)+a;}in…… 题解列表 2023年01月08日 0 点赞 0 评论 85 浏览 评分:0.0