题解列表
蓝桥杯基础练习VIP-矩阵乘法python动态规划
摘要: n,m = map(int,input().split())
li = []
for i in range(n):
li.append(list(……
python 编写题解 1615: 蓝桥杯算法训练VIP-友好数
摘要:解题思路:注意事项:参考代码:def pr(n): ls=set() for i in range(1,n+1): if n%i==0:ls.add(str(i)) #……
Python第一天1 a + b
摘要:解题思路: 本来可能会出现多个空格的情况,但是想着还是算了,否则的话,可以使用正则表达式,但是没有必要注意事项:这道题不是很严谨参考代码:while True:
str1 = input()……
密码破译[使用Python]
摘要:str1 = input()
strList = list(str1)
count = 0
chrNum = 0
while count < len(strList):
chrNum……
1523: 蓝桥杯算法提高VIP-打水问题
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int n, m, a[1010], b[1010][1……
史上最强数学题解(公倍数)
摘要:解题思路:公倍数之后的全部情况都可以通过两数之差来实现,因此只需要关注公倍数之前的情况即可。公倍数可以全部用两数相加实现,在此基础上减掉另外一个数后,两数之差便无法弥补缺口。注意事项:参考代码:#in……
2580: 蓝桥杯2020年第十一届省赛真题-分类计数
摘要:解题思路:注意事项:参考代码:st=input()
A,a,d=0,0,0
for i in st:
if i.isdigit():
d+=1
if i.is……
2575: 蓝桥杯2020年第十一届省赛真题-整除序列
摘要:解题思路:注意事项:参考代码:st=int(input())
print(st,end=' ')
while st>1:
print(st//2,end=' &#……