虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

您现在的位置是:虫虫下载站 > 资源下载 > 其他 > Input The input consists of two lines. The first line contains two integers n and k which are the l

Input The input consists of two lines. The first line contains two integers n and k which are the l

  • 资源大小:2 K
  • 上传时间: 2014-12-21
  • 上传用户:zm250063191
  • 资源积分:2 下载积分
  • 标      签: The two consists contains

资 源 简 介

Input The input consists of two lines. The first line contains two integers n and k which are the lengths of the array and the sliding window. There are n integers in the second line. Output There are two lines in the output. The first line gives the minimum values in the window at each position, from left to right, respectively. The second line gives the maximum values. Sample Input 8 3 1 3 -1 -3 5 3 6 7 Sample Output -1 -3 -3 -3 3 3 3 3 5 5 6 7

相 关 资 源

您 可 能 感 兴 趣 的