题解: 公交汽车【Python】 摘要:解题思路:动态规划。参考代码:cost = list(map(int, input().split())) n = int(input()) dp = [0 for i in range(n)]…… 题解列表 2022年12月03日 0 点赞 0 评论 243 浏览 评分:9.9
题解:装箱问题【Python求解】 摘要:解题思路:递归参考代码:## 递归算法 V = int(input()) n = int(input()) v_lis = [] for i in range(n): v =…… 题解列表 2022年12月03日 0 点赞 0 评论 176 浏览 评分:9.9
【Python】编写题解 1981: 输出M到N的数 摘要:注意事项:利用range()函数循环输出参考代码:M, N = map(int, input().split()) if M<N: for i in range(M+1, N+1): …… 题解列表 2022年12月02日 0 点赞 0 评论 195 浏览 评分:9.9
【Python】1984: 蓝桥杯算法提高VIP-求圆面积表面积体积 摘要:注意事项:格式化输出参考代码:r = float(input()) pi = 3.1415926536 s1 = pi*r**2 s2 = 4*pi*r**2 v = 4*pi*r**3/3…… 题解列表 2022年12月02日 0 点赞 0 评论 805 浏览 评分:9.9
2789: 骑车与走路 摘要:解题思路:注意事项:参考代码:a = int(input())if a / 3 + 50 < a / 1.2: print('Bike')elif a / 3 + 50 == a…… 题解列表 2022年12月01日 0 点赞 0 评论 359 浏览 评分:9.9
2788: 晶晶赴约会 摘要:解题思路:注意事项:参考代码:import sys a = int(input())if a < 1 or a > 7: sys.exit() #退出程序elif a != …… 题解列表 2022年12月01日 0 点赞 0 评论 390 浏览 评分:6.0
同因查找(还行) 摘要:解题思路:注意事项:参考代码:for i in range(10,1000): if i%2==0 and i%3==0 and i%7==0: print(i) …… 题解列表 2022年12月01日 0 点赞 0 评论 221 浏览 评分:0.0
求偶数和(还行的解法) 摘要:解题思路:注意事项:参考代码:n=int(input())sn=0lit=list(map(int,input().split()))for i in lit: if i%2==0: …… 题解列表 2022年12月01日 0 点赞 0 评论 298 浏览 评分:0.0
2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:import sysa , b = map(int,input().strip().split())if a < 0 or a > 100 or b < 0 or b >…… 题解列表 2022年11月29日 0 点赞 2 评论 493 浏览 评分:9.9
2786: 判断能否被3、5、7整除 摘要:解题思路:不用循环,只用条件判断语句注意事项:参考代码:a = int(input())if a % 3 == 0 and a % 5 == 0 and a % 7 == 0: print(&#…… 题解列表 2022年11月29日 0 点赞 0 评论 625 浏览 评分:2.0