from re import template from heapq import merge # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param nums int整型一维数组 # @return int整型 # class Solution: mod = 1000000007 total = 0 #归并实现 def merge(self, li, low, mid, high): i,j = low,mid+1 temp = [] sum = 0 #两边都有数 while i<=mid and j<=high: if li[...