摘要: 期末预测之安全指数 试题编号: 202012-1 试题名称: 期末预测之安全指数 时间限制: 1.0s 内存限制: 512.0MB 6 2 60 10 100 0 70 0 0 -10 50 10 60 2 -10 100 -1 15 1 n=int(input()) 2 summ=0 3 for 阅读全文
posted @ 2021-03-07 17:52 浅忆~ 阅读(147) 评论(0) 推荐(0) 编辑
摘要: quickSort def partition(arr,low, high): i=(low-1) p=arr[high] for j in range(low, high): if arr[j]<=p: i+=1 arr[i],arr[j]=arr[j],arr[i] arr[i+1],arr[h 阅读全文
posted @ 2021-03-07 14:59 浅忆~ 阅读(91) 评论(0) 推荐(0) 编辑