[python]动态规划&遍历 摘要:# 问题描述 .split()))for i in range(3)]lst2=[]for m in range(3): fo…… 题解列表 2022年02月20日 0 点赞 0 评论 193 浏览 评分:0.0
1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:def fun(a, b, c): d = b**2 - 4 * a * c if d > 0: x1 = (-b + pow(d, 0.5))…… 题解列表 2022年02月20日 0 点赞 0 评论 366 浏览 评分:9.9
1026: [编程入门]数字逆序输出 摘要:解题思路:注意事项:参考代码:li = list(map(int, input().split()))for i in li[::-1]: print(i,end=' ')…… 题解列表 2022年02月20日 0 点赞 0 评论 197 浏览 评分:0.0
1025: [编程入门]数组插入处理 摘要:解题思路:注意事项:参考代码:li = list(map(int, input().split()))a = eval(input())li.append(a)li.sort(reverse = Fa…… 题解列表 2022年02月20日 0 点赞 0 评论 199 浏览 评分:0.0
还行,一般般吧 摘要:解题思路:注意事项:参考代码:def hanshu(a, b, c): det = b ** 2 - 4 * a * c if det > 0: x1 = (-b + pow…… 题解列表 2022年02月20日 0 点赞 0 评论 450 浏览 评分:9.9
1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:n = eval(input())ini = 1for i in range(n-1): sum = (ini+1)*2 ini = sumprint(sum…… 题解列表 2022年02月20日 0 点赞 0 评论 225 浏览 评分:0.0
1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:M,N = map(int, input().split())dis = 0height = M * pow(0.5, N)for i in range(1, N+1):…… 题解列表 2022年02月20日 0 点赞 0 评论 268 浏览 评分:0.0
1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:for i in range(100, 1000): if i == eval(str(i)[0])**3+eval(str(i)[1])**3+eval(str(…… 题解列表 2022年02月20日 0 点赞 0 评论 221 浏览 评分:0.0
1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:a, b, c = list(map(int, input().split()))sum1 = 0sum2 = 0sum3 = 0for i in range(1, a+…… 题解列表 2022年02月20日 0 点赞 0 评论 206 浏览 评分:0.0