题解列表

筛选

字符串的修改(python)

摘要:解题思路:注意事项:参考代码:def min_edit_distance(A, B):    m, n = len(A), len(B)        # 创建一个二维数组来记录状态    dp = ……

reverse倒序列表

摘要:解题思路:注意事项:参考代码:n=int(input())nums=list(map(int,input().split())) nums.reverse()for i in nums:     pr……

陶陶摘苹果

摘要:解题思路:注意事项:参考代码:ls = list(map(int,input().split()))h = int(input())c = 0for i in range(0,len(ls)):   ……

与指定数字相同的数的个数

摘要:解题思路:使用for循环遍历列表注意事项:参考代码:n = int(input())c=0ls = list(map(int,input().split()))m = int(input())for ……

循环队列之数字后移

摘要:解题思路:看成循环队列即可注意事项:参考代码:n=int(input())x=list(input().split())y=list(x)m=int(input())for i in range(0,……

结构体之时间设计

摘要:解题思路:注意事项:参考代码:def leap(year):    if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0:        ……

筛选N以内的素数

摘要:解题思路:     使用埃筛筛选素数注意事项:参考代码:N=int(input())isprime=[True]*10000isprime[0]=Falseisprime[1]=False# prin……