给定一个k进制数a,编程计算最少经过多少次倒置相加运算,a 变成回文数。
标签: 进制数
上传时间: 2015-10-22
上传用户:miaochun888
用GOSS解线性方程组 Dim i As Integer 循环变量 Dim j As Integer 循环变量 Dim k As Integer 循环变量
上传时间: 2015-10-25
上传用户:xinzhch
设计算法实现在一个具有在n各互不相同元素的数组A[1…n]中找出所有前k个最小元素的问题,这里k不是常量,即它是输入数据的一部分。要求算法的时间复杂性为Θ(n)。
上传时间: 2013-12-21
上传用户:zhliu007
%BIQPBOX Bisection reflective line search for sqpbox % [nx,nsig,alpha] = BIQPBOX(s,c,strg,x,y,sigma,l,u,... % oval,po,normg,DS,mtxmpy,data,H) % returns the new feasible point nx, the corresponding sign vector nsig, % and the step size of the unreflected step, alpha. % Copyright (c) 1990-98 by The MathWorks, Inc. % $Revision: 1.2 $ $Date:
标签: BIQPBOX reflective Bisection search
上传时间: 2013-12-17
上传用户:sk5201314
Input The first line of the input contains a single integer T (1 <= T <= 20), the number of test cases. Then T cases follow. The first line of each case contains N, and the second line contains N integers giving the time for each people to cross the river. Each case is preceded by a blank line. There won t be more than 1000 people and nobody takes more than 100 seconds to cross. Output For each test case, print a line containing the total number of seconds required for all the N people to cross the river. Sample Input 1 4 1 2 5 10 Sample Output 17
标签: the contains integer number
上传时间: 2015-10-27
上传用户:plsee
Input The input contains blocks of 2 lines. The first line contains the number of sticks parts after cutting, there are at most 64 sticks. The second line contains the lengths of those parts separated by the space. The last line of the file contains zero. Output The output should contains the smallest possible length of original sticks, one per line. Sample Input 9 5 2 1 5 2 1 5 2 1 4 1 2 3 4 0 Sample Output 6 5
标签: contains The blocks number
上传时间: 2015-10-27
上传用户:lepoke
The output should contain the minimum setup time in minutes, one per line.
标签: contain minimum minutes output
上传时间: 2014-01-20
上传用户:hjshhyy
% 信道容量C的迭代算法 % % 函数说明: % % [CC,Paa]=ChannelCap(P,k) 为信道容量函数 % % 变量说明: % % P:输入的正向转移概率矩阵,k:迭代计算精度 % % CC:最佳信道容量,Paa:最佳输入概率矩阵 % % Pa:初始输入概率矩阵,Pba:正向转移概率矩阵 % % Pb:输出概率矩阵 % % C:初始信道容量, r:输入符号数,s:输出符号数 %
标签: ChannelCap Paa 信道容量 函数
上传时间: 2014-01-08
上传用户:zhenyushaw
用 MATLAB 编写的 模糊C均值聚类法源程序 和模糊k均值聚类法源程序,比较实用。
上传时间: 2013-12-01
上传用户:liuchee
k-means som 层次聚类 算法比较
上传时间: 2015-10-29
上传用户:拔丝土豆