编写题解 1159: 偶数求和 摘要:解题思路:注意事项:参考代码:while True: try: n,m= map(int,input().split()) ls = [2] …… 题解列表 2021年12月22日 0 点赞 0 评论 232 浏览 评分:0.0
【入门编程】最大公因数与最小公倍数-题解(Python代码0 摘要:解题思路:注意事项:参考代码:a, b = map(int, input().split()) # !!!!!!!!!!!!!!!!max_n = max(a, b)min_n = min(a, …… 题解列表 2021年12月21日 0 点赞 0 评论 287 浏览 评分:0.0
蓝桥杯基础练习VIP-Huffuman树 摘要:解题思路:注意事项:参考代码:n=int(input())List=list(map(int,input().split()))cost=0while len(List)!=1: Min1=mi…… 题解列表 2021年12月21日 0 点赞 0 评论 272 浏览 评分:0.0
蓝桥杯基础练习VIP-阶乘计算 摘要:解题思路:注意事项:参考代码:def jc(n): result=1 while n!=1: result=result*n n=n-1 return i…… 题解列表 2021年12月21日 0 点赞 0 评论 289 浏览 评分:0.0
编写题解 1571: 蓝桥杯算法提高VIP-输出正反三角形 摘要:解题思路:注意事项:参考代码:m,n = map(int,input().split()) xing1 =list(range(1,2*m,2)) xing2 = xing1[:] xing2.…… 题解列表 2021年12月21日 0 点赞 0 评论 334 浏览 评分:0.0
输出九九乘法表--编写题解 1570 摘要:print(" Nine-by-nine Multiplication Table") print("--------------------------------------") print…… 题解列表 2021年12月21日 0 点赞 0 评论 195 浏览 评分:0.0
求[X,Y]内被除3余1并且被除5余3的整数的和(python) 摘要:m,n = map(int,input().split())if m > n: m,n = n,msum = 0for i in range(m,n): if i%3 == 1 and …… 题解列表 2021年12月20日 0 点赞 0 评论 312 浏览 评分:0.0
编写题解 1169: 绝对值排序 摘要:while True: a=list(map(int,input().split())) if a[0] == 0: break a = a[1:] …… 题解列表 2021年12月20日 0 点赞 0 评论 367 浏览 评分:8.0
一行代码解决字符逆序问题 摘要:解题思路:由于input输出的直接就是字符串,我们就可以直接对字符串进行逆序,使用的方法就是切片逆序[::-1],-1就是逆序输出,那么解题方法就很简单了,一行代码就可以解决。参考代码:print(s…… 题解列表 2021年12月19日 0 点赞 0 评论 659 浏览 评分:9.9