1454: 蓝桥杯历届试题-蚂蚁感冒 摘要:解题思路:注意事项:参考代码:n=int(input()) l=list(map(int,input().split())) sk=l[0] l.sort(key=lambda i:abs(i)…… 题解列表 2022年02月01日 0 点赞 0 评论 486 浏览 评分:0.0
优质题解 python-未名湖边的烦恼 摘要:解题思路:这道题python写递归算法的话会超时,83分。因此采用动态规划的解题方法。建立一个(m+1)*(n+1)大小的二维数组dp[i][j],其中dp[i][j]表示还鞋的有i个人借鞋的有j个人…… 题解列表 2022年02月01日 0 点赞 0 评论 690 浏览 评分:9.9
1431: 蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:n=int(input()) l=list(map(int,input().split())) candin=0 while True: t=[i//2 …… 题解列表 2022年02月01日 0 点赞 0 评论 607 浏览 评分:9.9
python-最大最小公倍数 摘要:解题思路:三个数a,b,c依次从大往小找。注意事项:参考代码:from math import gcd n = int(input().strip()) a = n b = …… 题解列表 2022年02月01日 0 点赞 0 评论 583 浏览 评分:9.9
回文数二 简单易懂 摘要:解题思路:先把给出的数字转换为10进制,再相加,然后转回为n进制参考代码:def czy(n,m):#10进制转换为n进制 strs='' while m: …… 题解列表 2022年02月01日 0 点赞 0 评论 550 浏览 评分:0.0
1434: 蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:n=int(input()) def get(x): if str(x) == str(x)[::-1]: return 1 def g(…… 题解列表 2022年01月31日 0 点赞 0 评论 261 浏览 评分:0.0
优质题解 dp保姆级题解(python+ c语言+ c++三种语言实现 + 代码图解) 摘要: **题目**: 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 问从上到下走一条路径,路径的数字最大和是多少…… 题解列表 2022年01月31日 2 点赞 4 评论 1718 浏览 评分:9.4
1115: DNA(python代码) 摘要:解题思路:注意事项:参考代码:n = int(input()) for i in range(n): a,b=map(int,input().split()) for j in …… 题解列表 2022年01月31日 0 点赞 0 评论 461 浏览 评分:0.0
1094: 字符串的输入输出处理 摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(n): st=input() print(st) print('…… 题解列表 2022年01月31日 0 点赞 0 评论 379 浏览 评分:0.0
1394: 永远的丰碑 摘要:解题思路:注意事项:参考代码:while True: try: a=list(map(int,input().strip().split())) if a[0] ==0: break …… 题解列表 2022年01月31日 0 点赞 0 评论 411 浏览 评分:0.0