大意是给你一个数组和k,求连续k个数和的最小值
用滑动窗口,注意不要每次求和,时间肯定过不了
```
def minSum(nums, k):
res, _sum =0,sum(nums[:k])
_min = _sum
for i,vin enumerate(nums[k:1]):
_sum = _sum - nums[i] + v
if _sum < _min:
_min = _sum
res = i +2
return res
n,k = [int(x)for xin input().strip().split(' ')]
h = [int(x)for xin input().strip().split(' ')]
print(minSum(h,k))
```