-
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
-
ZSI_MBC_Openloop
this file is a simulation of maximum boost control in z_zource inverter
- 2013-12-10 02:02:49下载
- 积分:1
-
fisher
鱼群算法,一种用Matlab实现的鱼群算法。(Fish algorithm, a Matlab algorithm to achieve the fish.)
- 2010-06-07 14:53:26下载
- 积分:1
-
Wavelet-domain-noise-suppression
在小波变换域实现图像噪声抑制,使用matlab编程,包括源代码实现及文档说明(In wavelet transform domain realizes image noise suppression, use matlab programming, including the source code of the realization of document description
)
- 2011-06-16 12:53:46下载
- 积分:1
-
Genetic-algorithm-neural-network-
运用遗传算法优化神经网络结构,提高训练速度,运算精度(Genetic algorithm optimization of neural network structure, improve training speed, the precision)
- 2015-04-01 15:29:37下载
- 积分:1
-
mlp_tanker
油轮航向调节的多层感知器,可定义不同条件下的油轮参数(Multilayer perceptron for tanker ship heading regulation)
- 2019-06-03 10:01:57下载
- 积分:1
-
tabu-matlabcode-tsp
禁忌搜索解决TSP的Matlab程序.一个很简单的禁忌搜索程序,效果一般,以后还要努力改善。(Tabu search to solve TSP, Matlab program. A very simple tabu search procedure, the effect in general, we still have to improve.)
- 2010-03-12 23:35:38下载
- 积分:1
-
SVM-KMtoolbox
svm-km支持向量机工具箱,特点是他们能够同时最小化经验误差与最大化几何边缘区.因此支持向量机也被称为最大边缘区分类器.(svm-km SVM Toolbox, is characterized by experience that they can while minimizing errors and maximizing geometric border zone. therefore support vector machine is also known as the maximum marginal zone classification.)
- 2013-09-04 19:37:13下载
- 积分:1
-
D-learnig-matlab
深度学习工具箱,很多深度学习的源码,可以用于后级开发(deep learning toolbox)
- 2015-10-26 08:04:53下载
- 积分:1
-
circle
说明: Matlab中的画圆函数。Matlab本身没有画圆的函数。本附件实现了画圆函数。(Drawcircle function in Matlab. Matlab does not have drawcircle function. Of this Annex drawcircle realize the function.)
- 2008-09-25 14:36:28下载
- 积分:1