当前位置: 首页 > news >正文

【ECJTU_ACM 11级队员2012年暑假训练赛(8) - K - A short problem】

B题要套一个数论的模版,注意m=1!! C题可以二分匹配,把行列看作点; 不能开百度,开谷歌搜题解,再次强调!一经发现,取消成绩!

ECJTU_ACM 11级队员2012年暑假训练赛(8)
4:30:00
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: 
 
 

转载于:https://www.cnblogs.com/ismdeep/archive/2012/08/13/2635995.html

相关文章:

  • 优龙FS2410开发板学习过程遇到问题总结
  • linux信号量
  • android:supportsRtl=true
  • Linux安装卸载软件
  • Swift是花拳绣腿吗?——谈谈开发语言与程序员的职业发展
  • sqlite打印结果集函数
  • Linux内核中的时间
  • 写好注释的方法小结
  • 如何把Access中数据导入Mysql中 (转)
  • 隐藏windows7/8“卸载或更改程序”里的软件
  • C# 5.0中新增特性
  • nw.js桌面软件开发系列 第0.1节 HTML5和桌面软件开发的碰撞
  • android 介绍
  • 前端性能--指标分析
  • 参加2012 OpenStack亚太技术大会
  • 【108天】Java——《Head First Java》笔记(第1-4章)
  • 【技术性】Search知识
  • AzureCon上微软宣布了哪些容器相关的重磅消息
  • CentOS学习笔记 - 12. Nginx搭建Centos7.5远程repo
  • Electron入门介绍
  • js继承的实现方法
  • 阿里云购买磁盘后挂载
  • 百度小程序遇到的问题
  • 订阅Forge Viewer所有的事件
  • 精彩代码 vue.js
  • 区块链将重新定义世界
  • 微信小程序:实现悬浮返回和分享按钮
  • 微信小程序实战练习(仿五洲到家微信版)
  • 用简单代码看卷积组块发展
  • ​人工智能书单(数学基础篇)
  • ​中南建设2022年半年报“韧”字当头,经营性现金流持续为正​
  • (0)Nginx 功能特性
  • (Mirage系列之二)VMware Horizon Mirage的经典用户用例及真实案例分析
  • (pytorch进阶之路)扩散概率模型
  • (超简单)使用vuepress搭建自己的博客并部署到github pages上
  • (二十一)devops持续集成开发——使用jenkins的Docker Pipeline插件完成docker项目的pipeline流水线发布
  • (牛客腾讯思维编程题)编码编码分组打印下标题目分析
  • (十二)springboot实战——SSE服务推送事件案例实现
  • (太强大了) - Linux 性能监控、测试、优化工具
  • (转)Android学习系列(31)--App自动化之使用Ant编译项目多渠道打包
  • (转)拼包函数及网络封包的异常处理(含代码)
  • .Net 8.0 新的变化
  • .net程序集学习心得
  • .Net的DataSet直接与SQL2005交互
  • .Net环境下的缓存技术介绍
  • .NET序列化 serializable,反序列化
  • @cacheable 是否缓存成功_Spring Cache缓存注解
  • @data注解_一枚 架构师 也不会用的Lombok注解,相见恨晚
  • []Telit UC864E 拨号上网
  • [22]. 括号生成
  • [Android]常见的数据传递方式
  • [autojs]逍遥模拟器和vscode对接
  • [AutoSar NVM] 存储架构
  • [AutoSar]BSW_OS 01 priority ceiling protocol(PCP)
  • [BUUCTF]-Reverse:reverse3解析