#3709. Best Cow Fences -ybt

Best Cow Fences -ybt

Description

给定一个长度为n的正整数序列A。求一个平均数最大的,长度不小于L的子序列。

Input Format

第一行,n和L;

n个正整数,表示A。

Output Format

一个整数,表示答案的1000倍(不用四舍五入,直接输出)。

10 6 
6 4 2 10 3 8 5 9 4 1 
6500

Hint

n ≤ 100000