【ECJTU_ACM 11级队员2012年暑假训练赛(8) - K - A short problem】
2012-08-13 10:58
260 查看
Home | Problems | Status | Contest | Register | Login |
ECJTU_ACM 11级队员2012年暑假训练赛(8)
4:30:00
Overview
Problem
Status
Rank
Discuss
A B C D E F G H I J K
K - A short problem
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit Status Practice FZU 2013
Description
The description of this problem is very short. Now give you a string(length N), and ask you the max sum of the substring which the length can't small than M.
Input
The first line is one integer T(T≤20) indicates the number of the test cases. Then for every case, the first line is two integer N(1≤N≤1000000) and M(1≤M≤N).
Then one line contains N integer indicate the number. All the number is between -10000 and 10000.
Output
Output one line with an integer.
Sample Input
2 5 1 1 -2 -2 -2 1 5 2 1 -2 -2 -2 1
Sample Output
1 -1
FAQ | About Virtual Judge | Forum | Discuss | Open Source Project
All Copyright Reserved ©2010-2012 HUST ACM/ICPC TEAM
Anything about the OJ, please ask in the forum, or contact author:Isun
Server Time:
相关文章推荐
- 【ECJTU_ACM 11级队员2012年暑假训练赛(8) - J - Word Problem】
- 【A - ECJTU_ACM 11级队员2012年暑假训练赛(2)】
- 【ECJTU_ACM 11级队员2012年暑假训练赛(7) - B - Sliding Window】
- 【B - ECJTU_ACM 11级队员2012年暑假训练赛(2)】
- 【ECJTU_ACM 11级队员2012年暑假训练赛(7) - C - Fire Net】
- 【ECJTU_ACM 11级队员2012年暑假训练赛(8) - A - Paths on a Grid】
- 【C - ECJTU_ACM 11级队员2012年暑假训练赛(2)】
- 【ECJTU_ACM 11级队员2012年暑假训练赛(7) - D - Little Elephant and Rozdil】
- 【ECJTU_ACM 11级队员2012年暑假训练赛(8) - B - Modular Inverse】
- 【D - ECJTU_ACM 11级队员2012年暑假训练赛(2)】
- 【ECJTU_ACM 11级队员2012年暑假训练赛(7) - E - Little Elephant and Sorting】
- 【ECJTU_ACM 11级队员2012年暑假训练赛(8) - C - Asteroids】
- 【E - ECJTU_ACM 11级队员2012年暑假训练赛(2)】
- 【ECJTU_ACM 11级队员2012年暑假训练赛(7) - F - Sign in】
- 【ECJTU_ACM 11级队员2012年暑假训练赛(8) - D - Distinct Primes】
- 【F - ECJTU_ACM 11级队员2012年暑假训练赛(2)】
- 【ECJTU_ACM 11级队员2012年暑假训练赛(7) - G - Prime Sum】
- 【ECJTU_ACM 11级队员2012年暑假训练赛(8) - E - Buy Tickets】
- 【G - ECJTU_ACM 11级队员2012年暑假训练赛(2)】
- 【ECJTU_ACM 11级队员2012年暑假训练赛(7) - H - Bookshelf 2】