Cylinder题解简短易懂python 摘要:解题思路:注意事项:注意分两种情况讨论,还有不要自己定义pi。。。。参考代码:import mathpi=math.piwhile True: w,h=map(float,input().spl…… 题解列表 2022年12月05日 0 点赞 0 评论 462 浏览 评分:9.9
2792: 三角形判断 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().strip().split())if a + b > c and a + c > b and b + c > a: …… 题解列表 2022年12月04日 0 点赞 0 评论 584 浏览 评分:0.0
2791: 计算邮资 摘要:解题思路:注意事项:参考代码:a, b = input().strip().split()a = int(a) ; b = str(b) # 这里的b转换类型只是为了增加程序可读性,可以不用转换…… 题解列表 2022年12月04日 0 点赞 0 评论 609 浏览 评分:8.0
2790: 分段函数 摘要:解题思路:注意事项:参考代码:import sysx = float(input())if x < 0 or x >= 20: sys.exit()elif x < 5: print(&#…… 题解列表 2022年12月03日 0 点赞 0 评论 417 浏览 评分:0.0
题解: 数字三角形【Python】 摘要:解题思路:动态规划参考代码:N = int(input()) dp = [] for i in range(N): row = list(map(int, input().split()…… 题解列表 2022年12月03日 0 点赞 0 评论 521 浏览 评分:9.9
题解: 公交汽车【Python】 摘要:解题思路:动态规划。参考代码:cost = list(map(int, input().split())) n = int(input()) dp = [0 for i in range(n)] …… 题解列表 2022年12月03日 0 点赞 0 评论 365 浏览 评分:9.9
题解:装箱问题【Python求解】 摘要:解题思路:递归参考代码:## 递归算法 V = int(input()) n = int(input()) v_lis = [] for i in range(n): v =…… 题解列表 2022年12月03日 0 点赞 0 评论 306 浏览 评分: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 评论 334 浏览 评分: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 评论 942 浏览 评分: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 评论 537 浏览 评分:9.9