字符串的修改(python) 摘要:解题思路:注意事项:参考代码:def min_edit_distance(A, B): m, n = len(A), len(B) # 创建一个二维数组来记录状态 dp = …… 题解列表 2023年11月26日 0 点赞 0 评论 165 浏览 评分:0.0
reverse倒序列表 摘要:解题思路:注意事项:参考代码:n=int(input())nums=list(map(int,input().split())) nums.reverse()for i in nums: pr…… 题解列表 2023年11月26日 0 点赞 0 评论 642 浏览 评分:9.9
陶陶摘苹果 摘要:解题思路:注意事项:参考代码:ls = list(map(int,input().split()))h = int(input())c = 0for i in range(0,len(ls)): …… 题解列表 2023年11月26日 0 点赞 0 评论 269 浏览 评分:0.0
与指定数字相同的数的个数 摘要:解题思路:使用for循环遍历列表注意事项:参考代码:n = int(input())c=0ls = list(map(int,input().split()))m = int(input())for …… 题解列表 2023年11月26日 0 点赞 0 评论 517 浏览 评分:0.0
循环队列之数字后移 摘要:解题思路:看成循环队列即可注意事项:参考代码:n=int(input())x=list(input().split())y=list(x)m=int(input())for i in range(0,…… 题解列表 2023年11月25日 0 点赞 0 评论 194 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:注意事项:参考代码:def leap(year): if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0: …… 题解列表 2023年11月24日 0 点赞 0 评论 129 浏览 评分:0.0
筛选N以内的素数 摘要:解题思路: 使用埃筛筛选素数注意事项:参考代码:N=int(input())isprime=[True]*10000isprime[0]=Falseisprime[1]=False# prin…… 题解列表 2023年11月24日 0 点赞 0 评论 527 浏览 评分:9.9
2847: 找第一个只出现一次的字符 摘要:解题思路:注意事项:参考代码:n=input()flag=Falsefor i in n: if n.count(i)==1: print(i) flag=True …… 题解列表 2023年11月24日 0 点赞 0 评论 379 浏览 评分:9.9
[编程入门]数字的处理与判断 摘要:a = input()print(len(a))b = list(a)for i in b: print(i,end=' ')print()print(a[::-1])…… 题解列表 2023年11月23日 0 点赞 0 评论 182 浏览 评分:0.0
[编程入门]第一个HelloWorld程序 摘要:print("**************************") # print("*"*26) print("Hello World!") print("****************…… 题解列表 2023年11月23日 0 点赞 0 评论 203 浏览 评分:0.0