求和训练(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
1015匿名函数解法(Python) 摘要:注意事项:其实写在一行,不过展示出来太臃肿,如果有优化的一行解写法请在评论区留言参考代码:lst = list(map(int, input().split()))print('{:.2f}&…… 题解列表 2022年11月05日 0 点赞 0 评论 133 浏览 评分:0.0
1015——————求和训练 摘要: a,b,c = map(int,input().split()) s = 0 for i in range(1,a+1): s = s+i #…… 题解列表 2022年09月06日 0 点赞 0 评论 150 浏览 评分:0.0
1015: [编程入门]求和训练(python代码) 摘要:解题思路: 1.输入a,b,用map函数实现 2.创建变量 3.分别计算 1~a之和 1~b的平方和 1~c的倒数和 4.输出注意事项: 保留两位小数参考代码:a,b,c=map(int,i…… 题解列表 2022年07月20日 0 点赞 0 评论 492 浏览 评分:9.9
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) sum1=sum2=sum3=0 for i in range(1,a+1): sum1+=i…… 题解列表 2022年05月08日 0 点赞 0 评论 126 浏览 评分:0.0
python 解答方法 摘要:解题思路:注意事项:参考代码:x=list(map(int,input().split()))a=x[0]s1=0for i in range(1,a+1): s1+=ib=x[1]s2=0fo…… 题解列表 2022年03月30日 0 点赞 0 评论 130 浏览 评分:0.0
求和训练python 摘要:解题思路:分别求a部分,b部分,c部分的和注意事项:欢迎报考中山大学!参考代码:import matha,b,c=map(int,input().split())squares=[]pfh=[]dsh…… 题解列表 2022年03月11日 0 点赞 0 评论 383 浏览 评分:9.9
1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:a, b, c = list(map(int, input().split()))sum1 = 0sum2 = 0sum3 = 0for i in range(1, a+…… 题解列表 2022年02月20日 0 点赞 0 评论 157 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:注意最后保留2位小数,格式化输出参考代码:a,b,c=map(int,input().split())a0=b0=c0=0for i in range(1,a+1): a0+…… 题解列表 2022年02月04日 0 点赞 0 评论 190 浏览 评分:0.0
[编程入门]求和训练 摘要:```python a,b,c = map(int,input().split()) seq_a = [i for i in range(1,a+1)] seq_b = [i**2 for …… 题解列表 2022年01月22日 0 点赞 0 评论 189 浏览 评分:0.0