题解列表

筛选

归并排序思想

摘要:解题思路:注意事项:参考代码:def mergeSort(arr):    if len(arr) <= 1:        return arr, 0    mid = len(arr) // 2 ……

财务管理!!!!

摘要:解题思路:注意事项:参考代码:a1=0a3=0while a1<12:    a2=float(input())    a3+=a2    a1+=1a4=a3/12print("$%.2f"%a4)……

分段函数!!!

摘要:解题思路:注意事项:参考代码:n=float(input())0<=n<=20a1=2.5-na2=2-1.5*(n-3)*(n-3)a3=n/2-1.5if 0<=n<5:    print("%.……

报时助手Python

摘要:解题思路:注意事项:参考代码:nums = {0:&#39;zero&#39;,  1:&#39;one&#39;,  2:&#39;two&#39;,  3:&#39;three&#39;,  4:……
优质题解

仙之巅,傲世间

摘要:参考代码:n = int(input()) s = int(input()) sumt = [0] sumc = [0] for _ in range(n):     t, c = ma……