Toggle navigation
拓智机器人OJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1434--【例题2】Best Cow Fences
1434: 【例题2】Best Cow Fences
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
0
Solved:
0
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
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
Source/Category
TBD