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
上传时间: 2014-12-21
上传用户:hongmo
简介 TbcISAPIFilter.ISAPI.Filter.Component.for.Delphi.v2.1.WinALL.Retail.Source.Code-DVT TbcISAPIFilter代给你让你在Delphi 4,5,6,7和C++ Builder中可视化开发的体验。把这个组件拖放到数据模块上,按照你希望的方式处理事件。可视化地设置过滤器的优先级别。本组件带有IIS 认证过滤例子的DLL源代码。
标签: TbcISAPIFilter Component TbcISAPIF Code-DVT
上传时间: 2014-10-25
上传用户:gououo
一:需求分析 1. 问题描述 魔王总是使用自己的一种非常精练而抽象的语言讲话,没人能听懂,但他的语言是可逐步解释成人能听懂的语言,因为他的语言是由以下两种形式的规则由人的语言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o] ----------------------------------------------------------- 在这两种形式中,从左到右均表示解释.试写一个魔王语言的解释系统,把 他的话解释成人能听得懂的话. 2. 基本要求: 用下述两条具体规则和上述规则形式(2)实现.设大写字母表示魔王语言的词汇 小写字母表示人的语言的词汇 希腊字母表示可以用大写字母或小写字母代换的变量.魔王语言可含人的词汇. (1) B --> tAdA (2) A --> sae 3. 测试数据: B(ehnxgz)B 解释成 tsaedsaeezegexenehetsaedsae若将小写字母与汉字建立下表所示的对应关系,则魔王说的话是:"天上一只鹅地上一只鹅鹅追鹅赶鹅下鹅蛋鹅恨鹅天上一只鹅地上一只鹅". | t | d | s | a | e | z | g | x | n | h | | 天 | 地 | 上 | 一只| 鹅 | 追 | 赶 | 下 | 蛋 | 恨 |
上传时间: 2014-12-02
上传用户:jkhjkh1982
给定一个正整数 n,计算有多少个不同的连续自然数段,其和恰为 n。例如,当 n=27 时,有4个不同的连续自然数段的和恰为27:2+3+4+5+6+7;8+9+10;13+14;27。
上传时间: 2013-12-29
上传用户:lanwei
SQLite的一个Delphi的开源封装库,全面支持Delphi 4, 5, 6, 7, 2005 和 2006。对于Delphi 4和Delphi 5请使用带有D4、D5后缀的文件。解压缩下载回来的文件包到Delphi的子目录下,安装该组件,同时将该目录添加到环境变量的搜索路径中。 ASQLite的发布包中有两个子压缩包,其中ASQLite (ASQLiteD4, ASQLiteD5)是开发时的调试组件,ASQLitePkg (D4/D5)是发布时的运行组件,如果你没有把组件编译到你的工程里,可以使用它作为运行库。对于Borland C++的安装也有相应的BPK文件,过程大同小异。
上传时间: 2013-12-22
上传用户:小草123
实验目的:让学生掌握开发Java应用程序的三个步骤:编写源文件、编译源文件和运行应用程序。掌握Java程序的基本语句。 1、试编写一个程序,将1~500间能同时被2,5,7整除的数打印出来。 2、试编写一个程序,显示如图所示的一个数字金字塔。 1 121 12321 1234321 123454321 12345654321 1234567654321 123456787654321 12345678987654321 3、如果我国的经济增长以每年7.5%的速度保持稳定不变,试编写一个程序,计算过多少年可以实现总量翻两番?
上传时间: 2016-01-15
上传用户:风之骄子
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
标签: represented integers group items
上传时间: 2016-01-17
上传用户:jeffery
C 语言开发的日历(课程设计很不错的) Month:123/1 --- --- --- --- --- --- Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
上传时间: 2013-12-24
上传用户:a673761058
此源程序实现了打印出 * 金字塔的功能,总共输出5行,1~5行分别是1,3,5,7,9个‘* .
上传时间: 2013-12-30
上传用户:懒龙1988
.\ Info directory .\delphi\internet Delphi sample applications (all Delphi versions) .\cpp\internet C++Builder sample applications .\cpp\internet\bcb1 C++Builder version 1 projects .\cpp\internet\bcb3 C++Builder version 3 projects .\cpp\internet\bcb4 C++Builder version 4 projects .\cpp\internet\bcb5 C++Builder version 5 projects .\cpp\internet\bcb6 C++Builder version 6 projects .\delphi\vc Delphi 1.x files (winsock.pas 16 bits and *.dcr) .\delphi\vc32 Delphi (1/2/3/4/5/6/7) and C++Builder (1/3/4/5/6) components .\Delphi1 Automated build for Delphi 1. Not for beginners. .\Delphi2 Automated build for Delphi 2. Not for beginners. .\Delphi3 Automated build for Delphi 3. Not for beginners. .\bcb1 Automated build for Bcb 1. Not for beginners.
标签: Delphi delphiinternet applications cppinternet
上传时间: 2014-01-12
上传用户:star_in_rain