- Infrared 采用AT89S52单片机与红外发射接收二极管的红外通信的各种资料
- onlinelibrary Online Library... which provides online platform to mange the school or college library
- Unscented-Kalman-Filter 本程序为无迹卡尔曼滤波(ukf)的程序代码
- Co-op-Spectrum-Sensing-for-PFA Co
- WordFrequenceCount 基于文本的词频计算
- 缠论自动画笔指标 *((MT4t)) 安装至C:\Program Files\ MT4\MQL4\Indicators 感觉不错!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
文件名称:problem10
-
所属分类:
- 标签属性:
- 上传时间:2015-12-13
-
文件大小:1kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Descr iption
给定整型数组A(长度为),如果A的某个连续子数组满足:最大值与最小值之差小于某阈值,那么称该子数组为合法子数组,反之称为非法子数组。求最短非法子数组和最长合法子数组。
Input Descr iption
第一行:整型数,表示数组长度N。
第二行:整型数,表示阈值。
第三行:整型数组,表示给定的数组A,每两个整数之间用空格符分开。
Output Descr iption
第一行:最短非法子数组的长度(如果不存在,则输出0)。
第二行:最长合法子数组的长度(如果不存在,则输出0)。
-Descr iption given integer array A (length), if a continuous subarray meet A: The difference between maximum and minimum values of less than a certain threshold, then said the sub-sub-array is an array of legal, otherwise known as illegal sub-array. The shortest and longest illegal sub-arrays legitimate child array. Input Descr iption First line: integer representing the array length N. Second row: integer number that represents a threshold value. Third row: integer array representing the given array A, between each two integers separated by a space character. Output Descr iption First line: the length of the shortest illegal sub-array (if not present, the output 0). Second row: maximum length legitimate child of the array (if not present, the output 0).
给定整型数组A(长度为),如果A的某个连续子数组满足:最大值与最小值之差小于某阈值,那么称该子数组为合法子数组,反之称为非法子数组。求最短非法子数组和最长合法子数组。
Input Descr iption
第一行:整型数,表示数组长度N。
第二行:整型数,表示阈值。
第三行:整型数组,表示给定的数组A,每两个整数之间用空格符分开。
Output Descr iption
第一行:最短非法子数组的长度(如果不存在,则输出0)。
第二行:最长合法子数组的长度(如果不存在,则输出0)。
-Descr iption given integer array A (length), if a continuous subarray meet A: The difference between maximum and minimum values of less than a certain threshold, then said the sub-sub-array is an array of legal, otherwise known as illegal sub-array. The shortest and longest illegal sub-arrays legitimate child array. Input Descr iption First line: integer representing the array length N. Second row: integer number that represents a threshold value. Third row: integer array representing the given array A, between each two integers separated by a space character. Output Descr iption First line: the length of the shortest illegal sub-array (if not present, the output 0). Second row: maximum length legitimate child of the array (if not present, the output 0).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Դ.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.