2234: 【信息学奥赛一本通】Best Cow Fences

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:36 Solved:20

Description

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

Input

第一行,n和L;

n个正整数,表示A。

Output

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

Sample Input Copy

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

Sample Output Copy

6500

HINT

n ≤ 100000