-
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
-
scanComPorts
读串口信息,在matlab 环境下读出串口内容(read serial)
- 2013-04-03 11:08:45下载
- 积分:1
-
pendul
三级倒立摆的稳定, 使用三种鲁棒控制设计,详细的注解说明和simulink仿真。(The stability of triple inverted pendulum, the use of three kinds of robust control design, detailed descriptions and simulink simulation annotation.)
- 2007-10-06 04:01:26下载
- 积分:1
-
MATLAB
matlab的教程,是pdf文档的不是png,对matlab初级和高级应用都有详细描述(matlab tutorial is a pdf document is not a png, right matlab both junior and senior applications a detailed description of)
- 2009-11-03 08:48:39下载
- 积分:1
-
SSB
single side band modulation using matlab
- 2010-01-16 17:22:59下载
- 积分:1
-
chemical_elements_1-1
Lookup a chemical element based on Symbol, name, or atomic number
- 2007-11-02 14:47:41下载
- 积分:1
-
xsldemo_solvers
This model simulates a Foucault pendulum (a stiff system).
The model calculates the normalized pendulum energy
- 2013-07-31 21:05:36下载
- 积分:1
-
Canny
Matlab图像处理中常用的canny码源(This is canny code)
- 2010-07-13 19:52:47下载
- 积分:1
-
PID
PID控制算法的MATLAB仿真其中参数,Kp,Ki,Kd分别为PID控制器的比例、微分和积分参数。(PID control algorithm of the MATLAB simulation in which the parameters, Kp, Ki, Kd are the proportion of PID controller, differential and integral parameters.)
- 2020-07-06 21:38:58下载
- 积分:1
-
MATLABlanguagecommonlyusedalgorithmforassembly
说明: 《MATLAB语言常用算法程序集》一书的源程序(" MATLAB language commonly used algorithm for assembly," a source book)
- 2009-08-26 11:52:54下载
- 积分:1