M. [USACO03MAR] Best Cow Fences G

    Type: RemoteJudge 1000ms 512MiB

[USACO03MAR] Best Cow Fences G

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

2024CSP-J 题目选讲【李】

Not Claimed
Status
Done
Problem
27
Open Since
2025-9-30 0:00
Deadline
2025-11-27 23:59
Extension
24 hour(s)