「一本通 1.2 例 2」Best Cow Fences

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

原题来自:USACO 2003 Mar. Green

给定一个长度为 nn 的非负整数序列 AA ,求一个平均数最大的,长度不小于 LL 的子段。

输入格式

第一行用空格分隔的两个整数 nnLL

第二行为 nn 个用空格隔开的非负整数,表示 AiA_i

输出格式

输出一个整数,表示这个平均数的 10001000 倍。不用四舍五入,直接输出。

样例

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

数据范围与提示

1n105,0Ai20001 \leq n \leq 10^5,0 \leq A_i \leq 2000

第七届SWPU-ACM新生预选赛

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
103
Start at
2022-9-19 14:00
End at
2022-10-28 14:00
Duration
936 hour(s)
Host
Partic.
58