题解列表

筛选

解 2858: 整理药名

摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n):    s = input()    s = s.lower()    if s[0].isalpha……

2860: 字符串判等

摘要:解题思路:注意事项:参考代码:a = input().strip()b = input().strip()c = a.replace(" ", "")d = b.replace(" ", "")c =……

解 2861: 验证子串

摘要:解题思路:注意事项:参考代码:a = input().strip()b = input().strip()if a.find(b) != -1:    print(f"{b} is substring……

2863: 删除单词后缀

摘要:解题思路:注意事项:参考代码:s = input()t = s[-3::1]if ('er' in t) or ('ly' in t):    s = s[:-2:1]……

1169: 绝对值排序

摘要:```cpp #include using namespace std; bool cmp(int x,int y){ return abs(x)>abs(y); } int px……

2856: 潜伏者

摘要:解题思路:利用了计数的方法来进行判断注意事项:参考代码:a = input().strip()b = input().strip()s = input().strip()t = []g = []l =……

2862: 字符串移位包含问题

摘要:解题思路:注意事项:参考代码:s = list(map(str,input().split()))if len(s) == 2:    a,b = s[0],s[1]else:    a = s[0]……