-
uva10324解法(提共題目和解法程式)
題目說明:給你一連串僅包含0和1的字串 (字串長度最大到1000000,字串從第0個字元開始),要請你回答我們在第i個和第j個字元之間(包含第i個和第j個)、 是否所有的字元均相同 (均為1或均為0)。如果均相同請回答Yes、 否則請回答No。输入每筆測試資料的第一列為一個僅包含0和1的字串,下一列有1個整數n 代表對於上一列字串以下有n個問題。皆下來的 n 列每列有2個非負的整數分別代表 i和 j。输出對每一列測試字串,請先輸出第幾個的案例。然後根據 n 個問題回答肯定或否定的。解法:1.用获取讀入整行字串輸入、 並計算長度2.先判斷第 0 個位置,为 0 則把 0 存入另一個整數陣列,为 1 則存 13.用迴圈把字串陣列轉換存到整數陣列、 遇到字元 0 則值不變、 遇到字元 1 則加 14.欲判斷的i、 j位置都為字元 0、 且整數陣列i、 j位置的值相同、 代表有一連串 0、 輸出是5.欲判斷的i j位置都為字元 1,且整數陣列i、 j位置的值相減為i、 j的差、 代表有一連串 1,輸出是6.其他情況輸出号
- 2022-05-06 12:04:30下载
- 积分:1
-
dsafasdfdsafasdfdsafasdfdsafasdf
20种常用的PS处理 20种常用的PS处理-dsafasdfdsafasdfdsafasdfdsafasdf
- 2022-04-29 20:56:51下载
- 积分:1
-
唐山市用ARC做的地图矢量化,是进行系统开发的准备和前提条件。...
唐山市用ARC做的地图矢量化,是进行系统开发的准备和前提条件。-Tangshan City to do with ARC map vectorization is to carry out system development and prepare a prerequisite.
- 2022-07-18 01:41:05下载
- 积分:1
-
我用VC6给别人编写的倒计时,可以用在PPT做的现场答题计时用...
我用VC6给别人编写的倒计时,可以用在PPT做的现场答题计时用-I used VC6 prepared countdown to others, can be used in PPT answer time to do the scene with
- 2022-04-13 06:11:10下载
- 积分:1
-
第一款自己用MFC写的拼图游戏源代码,适合初学者下载学习!
第一款自己用MFC写的拼图游戏源代码,适合初学者下载学习!-The first written by their own jigsaw puzzle using MFC source code, suitable for beginners to learn to download!
- 2022-08-06 23:39:23下载
- 积分:1
-
对于汉诺塔,大家一点不陌生,这是我数据结构的一个作业,里面讲的很详细...
对于汉诺塔,大家一点不陌生,这是我数据结构的一个作业,里面讲的很详细-The Tower of Hanoi, is no stranger to everyone, this is my data structure of a work, which stresses the very detailed
- 2023-04-28 17:20:03下载
- 积分:1
-
Java API中文文档,是学习JAVA必备手册,很不错的文档
Java API中文文档,是学习JAVA必备手册,很不错的文档-Java API documentation in Chinese, is an essential handbook to learn JAVA, I am very good documentation
- 2022-05-10 16:02:00下载
- 积分:1
-
经典LabWindows CVI方面的教材《LabWindows CVI开发入门和进阶》一书例题1...
经典LabWindows CVI方面的教材《LabWindows CVI开发入门和进阶》一书例题1-4章中的源码,使用LabWindows CVI的人用得着。麻烦管理员帮我开通下载功能,我急需要本网站上的labwindows/CVI方面的数据库教程,谢谢!-LabWindows CVI aspects of the classic textbook
- 2022-03-24 03:59:31下载
- 积分:1
-
实际对象的数学模型并不清楚,难以控制。
针对实际对象数学模型不明确而难以控制的问题,采用人工免疫网络的离散模
型与学习算法,将人工免疫系统与神经网络结构的优势相结合,提出了一种基于人工免疫
网络的模式识别算法,构造了对象识别的人工免疫网络模型.该算法综合了网络节点的定
位与参数调整以及对基函数的平滑因子实施调谐等功能,有效地解决了径向基函数
(RBF)神经网络模式识别的两个阶段任务,使模式识别的精度有较大的改进.采用两个不
同对象函数进行的仿真试验表明,该算法具有快速收敛性与较高的准确性.
-Mathematical model for the actual object is not clear and difficult to control the problem, the use of artificial immune network model and the discrete learning algorithm, artificial immune systems and neural networks combine the advantages of structure, an artificial immune network based on pattern recognition algorithms, Construction of the object identified by artificial immune network model. the algorithm is a combination of network nodes to adjust the position and parameters as well as the basis function implementation of the smoothing factor, tuning and other functions, to effectively solve the Radial Basis Function (RBF) neural network pattern recognition of two phase of the task, so that the accuracy of pattern recognition have greater impro
- 2022-05-19 12:01:11下载
- 积分:1
-
ASP
asp-net项目开发实例-asp-net project development Example
- 2022-05-15 16:42:40下载
- 积分:1