题解列表

筛选

石头剪子布

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

统计数字字符个数

摘要:解题思路:注意事项:参考代码:n = input()c = 0b="".join(n)for i in b:    if i.isdigit():        c=c+1print(c)……

计算书费写法

摘要:解题思路:注意事项:参考代码:ls1 = list(map(int,input().split()))ls2 = [28.9,32.7,45.6,78,35,86.2,27.8,43,56,65]su……

财务管理求月平均值

摘要:解题思路:注意事项:参考代码:sum=0for i in range(12):    a=float(input())    sum+=aprint('${:.2f}'.format(……

字符串的修改(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:        ……