题解列表

筛选

2873: 字符串p型编码

摘要:解题思路:注意事项:参考代码:s = input() + ' ' a = "" b = 1 for i in range(len(s) - 1):     if s[i] ==……

1273: ISBN码

摘要:解题思路:注意事项:参考代码:while True:     try:         s = input()         s1 = "".join(s.split('-')……

2871: 单词倒排

摘要:解题思路:注意事项:参考代码:print(" ".join(input().split()[::-1]))……

2870: 单词翻转

摘要:解题思路:注意事项:参考代码:s = input().split() arr = [] for i in s:     arr.append(i[::-1]) print(" ".join(a……

2869: 字符串最大跨距

摘要:解题思路:注意事项:参考代码:S, S1, S2 = map(str, input().split(",")) if S.find(S1) == -1 or S.find(S2) == -1:  ……