-
ForK1
我们的目的是将一个分数拆分成若干个分子是1分母是正整数的分数之和的形式。例如2/3可以拆分成1/2+1/6的形式。这里不考虑顺序,比如1/6+1/2和1/2+1/6相同。
输入p, q, a, n, 其中p/q为分数,对这个分数进行拆分,要求拆分的分数个数不能多于n个,所有分母的乘积不能大于a。求有多少种拆分方法?
输入:最多200组数据。在每行中都有四个数分别表示p, q, a, n,之间以空格隔开,并且满足p,q<=800,a<=12000,n<=7,最后以四个0做为输入的结束。
输入示例:
2 3 120 3
2 3 300 3
0 0 0 0
输出示例:
4
7
(Our aim is to split a fraction into a number of elements is a denominator is a positive integer fraction of the sum of form. For example, 2/3 can be split into 1/2+1/6 form. Not considered here, the order, such as 1/6+1/2 and 1/2+1/6 of the same. Input p, q, a, n, where p/q as a fraction of this split scores require no more than the number of split points n-all the product of the denominator can not be larger than a. How many kinds of demand split method? Input: Up to 200 sets of data. In each line has four numbers indicate the p, q, a, n, separated by a space between, and meet the p, q < = 800, a < = 12000, n < = 7, the end, four 0 as the input end. Input Example: 2,312,032,330,030,000 sample output: 47)
- 2009-11-12 09:54:17下载
- 积分:1
-
attachments_2011_07_01
This is My Kalman Filter
- 2011-07-02 14:31:23下载
- 积分:1
-
abc2sc
This function transforms a three-phase unbalanced phasor into its
- 2011-08-03 10:46:52下载
- 积分:1
-
Heston
Heston Model option pricings and comparison(Compares the option prices obtained using the analytical Heston formula (1993) and the FFT method (Carr-Madan formula via FFT+ Simpson s, Carr-Madan using adaptive Gauss-Kronrod quadrature, and Lipton s formula using adaptive Gauss-Kronrod quadrature).)
- 2013-08-18 09:21:44下载
- 积分:1
-
verbitdecoder
卷积码是一种有记忆的编码,这里提供了卷积码的维特比译码函数(convolutional code is a kind of code memory, it provides Convolutional Codes Viterbi decoding function)
- 2006-06-01 11:29:25下载
- 积分:1
-
msvr
实现多输出的支持向量机回归,不需要对每一个输出都进行函数回归(Multi-output support vector machine regression,Each output does not need to be a function of the regression)
- 2013-11-29 10:43:56下载
- 积分:1
-
chap2
专家PID控制的matlab例程,主要包括开环,PI控制等方式(Expert matlab control of the PID routines, including open loop, PI control, etc.)
- 2016-01-18 22:57:22下载
- 积分:1
-
kmeansclustering
this is a kmeans clustering code writen in matlab
- 2011-07-21 17:04:32下载
- 积分:1
-
Simple-Code-Pengolahan-Citra-Digital
How to image processing using matlab: load image, BW, edge detection, noise remover, sharpening by any method by simple code (lp2m aray jakarta)
- 2014-11-07 06:27:36下载
- 积分:1
-
fuhaoguji
关于经过多径信道后,对于接收到的信息进行符号速率的估计,代码简洁易懂,有完整注释(After about multipath channel, the estimate for the received information symbol rate, the code is simple and easy to understand, complete comment)
- 2016-06-20 19:06:21下载
- 积分:1