题解列表

筛选

用函数写的

摘要:解题思路:注意事项:参考代码:def get_sum(a=4,b=3):    a,b =map(int,input().split())    sum = a%b    print(sum)get_……

递归法(辗转相除法)求最大公约数

摘要:解题思路:用辗转相除法求最大公约数,在借助最大公约数求最小公倍数注意事项:参考代码:def yue(m,n):    if n==0:return m    else:return yue(n,m%n……

简单易懂,看懂给个好评!

摘要:解题思路:注意事项:参考代码:h = 0q = 0hours = []n = int(input())for i in range(n):    q += 1    a, b = map(int, i……

无聊的星期六

摘要:n=[[0]*3]*3 for i in range(3):     n[i]=list(map(int,input().split())) for i in range(3):     pr……

无聊的星期六

摘要:n=input() for i in ['a','e','i','o','u']:     print('&……

无聊的星期六

摘要:n=list(map(int,input().split())) tmp=n[n.index(max(n))] n[n.index(max(n))]=n[9] n[9]=tmp tmp=n[n……

无聊的星期六

摘要:n=input() l1=l2=l3=l4=0 for i in range(len(n)):     if n[i].isspace():         l1+=1     elif n……

无聊的星期六

摘要:#试试python的类来完成,感觉还是C做起来简单 class Student:     def __init__(self, id, name,grades):         self.……

无聊的星期六

摘要:n=int(input()) for i in range(n):     x=list(input().split())     print(','.join(str(i) f……

无聊的星期六

摘要:size=int(input()) num=list(map(int,(input().split()))) num.sort() print(",".join(str(i) for i in ……