Did anyone ask for an integer version of sqrt? Following is an implementation I found and adapted. Hope it is useful for somebody.
标签: implementation Following adapted integer
上传时间: 2013-12-24
上传用户:阿四AIR
给定一个上下文无关文法的n条产生式规则,编程判断该文法对应的语言是否为空。若为空,则输出yes,否则输出no。
标签:
上传时间: 2015-10-26
上传用户:ruixue198909
给定由n 个整数(可能为负整数)组成的序列1 a , 2 a ,…, n a ,以及一个正整数m,要 求确定序列1 a , 2 a ,…, n a 的m 个不相交子段,使这m 个子段的总和达到最大。
上传时间: 2015-10-26
上传用户:yulg
最大子矩阵和问题 对于给定的m 行n 列的整数矩阵,编程计算其最大子矩阵和。
上传时间: 2015-10-26
上传用户:diets
n个元素{1,2, , n }有n!个不同的排列。将这n!个排列按字典序排列,并编号为0,1,…, n!-1。每个排列的编号为其字典序值。
上传时间: 2014-01-18
上传用户:日光微澜
设R={ r , r , , rn 1 2 }是要进行排列的n个元素。其中元素n r , r , , r 1 2 可能相同。试设计 一个算法,列出R的所有不同排列。
上传时间: 2014-01-16
上传用户:qilin
这是在S3C44B0的开发平台下的i/o接口试验,供大家参考!
上传时间: 2014-08-24
上传用户:源弋弋
Sobel--Image Filter (I). An Image filtering is made over data loaded into the on board RAM and presented on a VGA monitor.zip
标签: Image filtering Filter loaded
上传时间: 2013-12-22
上传用户:邶刖
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
用最小二乘法拟合曲线y=a0+a1*x+a2*x^2+a3*x^3+...+an*x^n 的vc源码
上传时间: 2015-10-27
上传用户:ryb