#!/usr/bin/env python # encoding: utf-8 t = int(raw_input()) for i in range(t): n,k = [int(x) for x in raw_input().split(' ')] lst = [int(x) for x in raw_input().split(' ')] ans = max(sum((lst*2)[j:j+k]) for j in range(n)) print ans 一个水题.给n,和k.然后求一个循…