题解列表
2576: 蓝桥杯2020年第十一届省赛真题-解码(python)
摘要:解题思路:注意事项:参考代码:st=input()
for i in range(len(st)):
if st[i].isdigit():
print(st[i-1]*……
2575: 蓝桥杯2020年第十一届省赛真题-整除序列
摘要:解题思路:注意事项:参考代码:st=int(input())
print(st,end=' ')
while st>1:
print(st//2,end=' &#……
2580: 蓝桥杯2020年第十一届省赛真题-分类计数
摘要:解题思路:注意事项:参考代码:st=input()
A,a,d=0,0,0
for i in st:
if i.isdigit():
d+=1
if i.is……
python 也就五六行吧 100
摘要:n=int(input().strip());la=[]
for i in range(n):
l=list(map(int,input().split()))
if len(l……
2552: NOIP2017提高组-小凯的疑惑
摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())
print(n*m-n-m)……
2547: [CSP-J2019] 数字游戏
摘要:解题思路:注意事项:参考代码:print(input().count('1'))……
密码破译[使用Python]
摘要:str1 = input()
strList = list(str1)
count = 0
chrNum = 0
while count < len(strList):
chrNum……
python-动态规划dp解题(简洁明了)
摘要:解题思路:01背包问题,利用动态规划思想,创建三个一维数组w[i],v[i],dp[i],分别用来存总价值=重要度*价格,价格,最大价值。注意事项:参考代码:n,m=map(int,input().s……
蓝桥杯2020年第十一届省赛真题-解码
摘要:```python
s = input()
b = '' #新的空字符
for i in range(len(s)):
if 48 ……