题解列表
1003: [编程入门]密码破译
摘要:解题思路:注意事项:参考代码:str = input().lower()
s = ""
for i in str:
if i == 'w':
s += ……
1895: 蓝桥杯算法提高VIP-队列操作
摘要:解题思路:注意事项:参考代码:N = int(input())
queue = []
lenght = len(queue)
for i in range(N):
x = input(……
1474: 蓝桥杯基础练习VIP-阶乘计算
摘要:解题思路:注意事项:参考代码:n = int(input())
s = 1
for i in range(2, n + 1):
s *= i
print(s)……
1475: 蓝桥杯基础练习VIP-高精度加法
摘要:解题思路:注意事项:参考代码:a = int(input())
b = int(input())
print(a + b)……
编写题解 1118: Tom数
摘要:解题思路:注意事项:参考代码:while True:
try:
print(sum(list(map(int, input()))))
except:
……
2124: 信息学奥赛一本通T1259-求最长不下降序列(DP)指定输出顺序
摘要:解题思路:DP, 以i节点为结束的最长不下降序列 f[i] = max(f[i], f[j] + 1) j > 1 && j < i;注意事项:输出顺序小数优先:判断相等最长情况下, 采用小数优先 ……