-
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
-
pls
一个pls的matlab的程序代码,供参考参考(Pls of a matlab program code, for reference information)
- 2011-11-28 21:32:10下载
- 积分:1
-
main
detecting woods by images
- 2013-12-03 14:47:18下载
- 积分:1
-
Matlab-lamb
Lamb波的频散曲线是进行超声Lamb波无损检测的重要依据。本程序对Rayleigh2Lamb方程进行了分析,给出了板中Lamb波频散曲线的数值计算方法,通过Matlab软件对求解过程进行编程,绘制出Lamb波在铝板中传播的相速度和群速度曲线,对推广应用Lamb波进行无损检测具有实际意义。(dispersion curve of lamb)
- 2020-12-17 15:09:13下载
- 积分:1
-
guidaofenix
利用Matlab软件编写的轨道不平顺数据分析程序能够对轨检车测得的不平顺数据进行处理,得到功率谱密度分布函数.轨道不平顺分析程序包括轨道不平顺数据预处理、轨道不平顺谱分布函数计算以及根据实测的车体振动加速度,对轨道不平顺与车体振动加速度进行相干分析、提出对行车运行有不利影响的不平顺波长范围等.研究结果表明:车辆的动力特性与轨道不平顺有密切关系.高低不平顺对车体垂向振动影响显著,轨向不平顺对车体水平振动影响显著,水平不平顺对列车垂向、横向振动均有显著影响.(Matlab software written track irregularity data analysis program able to track inspection car irregularity measured data are processed to obtain the power spectral density function. Track Irregularities track irregularity analysis procedures including data preprocessing, track irregularity spectrum distribution function calculations, and based on the measured vibration acceleration of the vehicle, with the body of track irregularity acceleration coherent analysis, have an adverse impact on traffic running irregularity wavelength range, etc. the results show that: the dynamic characteristics of the vehicle and the track irregularity closely related. rough along the vertical vibration of the vehicle significantly, rail irregularity vibration to levels significantly affect the body, the level of irregularity to train the vertical and horizontal vibration significantly affected.)
- 2014-01-19 16:41:57下载
- 积分:1
-
MATLAB_programming_trip_times_of_classic_tutorials
MATLAB程序设计之行遍性经典教程MATLAB programming trip times of classic tutorials(MATLAB programming trip times of the classic tutorial MATLAB programming trip times of classic tutorials)
- 2010-08-02 13:34:19下载
- 积分:1
-
solve
一个通过矩阵变换求解多维线性方程组的matlab函数(By solving a multi-dimensional matrix transformation of linear equations matlab function)
- 2010-10-27 20:54:43下载
- 积分:1
-
aa
说明: 要求如下: 数组与函数 1. 实验目的:掌握数组与函数的使用方法,掌握,面向过程的程序设计方法,复习分支与循环语句的使用。...
(Requirements are as follows: the array with the function 1. Experimental purposes: taking control of the array with the function to use, master, process-oriented program design method, review the use of branching and loop statements. ...)
- 2010-03-20 15:02:12下载
- 积分:1
-
ILP
最优化计算一书中整数规划源代码,已测试验证,可直接运行!(Optimization Calculation of integer programming source code of a book, testing and certification, can be directly run!)
- 2012-05-08 15:34:59下载
- 积分:1
-
lr_reduction_zf
This is a matlab code for lattice reducation using Zero foracing in OFDM
- 2013-03-25 14:38:55下载
- 积分:1