-
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
-
MATLABmotor
本书以实例的形式介绍了MATLAB仿真精华50例。内容丰富(The book describes an instance in the form of MATLAB simulation of 50 cases of essence. Rich)
- 2009-11-13 10:30:08下载
- 积分:1
-
ga
说明: LDPC码的matlab仿真程序,希望对大家有用,不客气,(LDPC codes matlab simulation program, in the hope that useful, at worst,)
- 2008-12-27 16:22:32下载
- 积分:1
-
GMgui
MATLAB实现的GM 11 灰色预测模型 (MATLAB implementation of the gray model GM 11)
- 2010-07-16 16:21:55下载
- 积分:1
-
lambertw
Salam
Des toolbox que j’ai les télécharger depuis qlq année titre se traitement de signal ou bient signal processing
- 2009-11-07 02:09:36下载
- 积分:1
-
calculator
用matlab编写得计算器,很好用得,不妨(Matlab prepared using a calculator, a very good use might be)
- 2008-08-19 18:16:03下载
- 积分:1
-
statcm_wind
STATCOM CONTROL SCHEME IN SIMULINK...
- 2015-01-02 21:58:29下载
- 积分:1
-
baotong
一个报童从报刊发行中心订报后零售,每卖一份报纸可赚钱a元;若报纸卖不出去,则退回发行处,每退一份要赔钱b元。每天报童卖出的份数是随机的,但报童可以根据以往卖报情况统计得到每天卖k份报纸的概率密度p(k)。
(1) 求报童每天期望收益达到最大(或损失达到最小)的定报量z。
(2) 改变参数a/b的值,观察订报量的最优值变化,画出变化曲线。
试画出仿真流程图,进行程序实现,并对仿真结果进行分析。
(A newsboy subscribe from the press after the retail distribution centers, each sale of a newspaper can make money a million if newspapers can not be sold, then returned to Issue Department, each retire to a loss of a b element. Newsboy sold shares in a day is random, but the newsboy can sell based on past statistics reported to be selling daily newspaper k the probability density p (k). (1) seeking newsboy expected profit per day to maximize (or minimize loss) reported that the volume of fixed-z. (2) change the parameters a/b values, subscribe to observe changes in the volume of the optimal value, draw curve. Simulation test to draw a flow chart for program realization, and simulation results for analysis.)
- 2008-06-14 01:16:47下载
- 积分:1
-
selfdwt
说明: 很好用的小波分解程序,简单,实用,对初学者很有帮助。(Nice wavelet decomposition program, for beginners helpful.)
- 2011-03-23 10:02:26下载
- 积分:1
-
yl
说明: 并联机构 机器人 工作空间 刚度 轨迹贵乎啊 (work space)
- 2012-05-11 11:07:24下载
- 积分:1