N, K = map(int, input().split())
p = list(map(int, input().split()))

import numpy as np

data = np.array(p) + 1

Pcum = np.zeros(N + 1, np.int32)
Pcum[1:] = data.cumsum()

length_K_sums = Pcum[K:] - Pcum[0:-K]

print(np.max(length_K_sums)/2) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K p = list(map(int, input().split())) p list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split import numpy as np numpy data = np.array(p) + 1 data np.array(p) + 1 np.array(p) np.array np array p 1 Pcum = np.zeros(N + 1, np.int32) Pcum np.zeros(N + 1, np.int32) np.zeros np zeros N + 1 N 1 np.int32 np int32 Pcum[1:] = data.cumsum() Pcum[1:] Pcum 1: 1 data.cumsum() data.cumsum data cumsum length_K_sums = Pcum[K:] - Pcum[0:-K] length_K_sums Pcum[K:] - Pcum[0:-K] Pcum[K:] Pcum K: K Pcum[0:-K] Pcum 0:-K 0 -K K print(np.max(length_K_sums)/2) print np.max(length_K_sums)/2 np.max(length_K_sums) np.max np max length_K_sums 2 N, K = map(int, input().split()) map(int, input().split()) N p = list(map(int, input().split())) list(map(int, input().split())) p K = map(int, input().split()) map(int, input().split()) K data = np.array(p) + 1 np.array(p) + 1 data Pcum = np.zeros(N + 1, np.int32) np.zeros(N + 1, np.int32) Pcum length_K_sums = Pcum[K:] - Pcum[0:-K] Pcum[K:] - Pcum[0:-K] length_K_sums
N, K = map(int, input().split())
p = list(map(int, input().split()))

import numpy as np

data = np.array(p) + 1

Pcum = np.zeros(N + 1, np.int32)
Pcum[1:] = data.cumsum()

length_K_sums = Pcum[K:] - Pcum[0:-K]

print(np.max(length_K_sums)/2)
