-
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
-
showkeys
很有用的源代码,很实用,效果相当好,很值得收藏(Useful source code, very practical, results have been very good, very worthy collection)
- 2010-11-26 21:38:57下载
- 积分:1
-
ex2_1102121057
雷达课程作业,阵列天线波束形成,脉冲压缩, MTI 滤波器设计,3变T 六脉冲对消 MTI, 非相干积累 恒虚警处理, 和差波束分析。(Radar course work, the array antenna beam forming, pulse compression the MTI filter design, 3 variant T six-pulse MTI cancellation, non-coherent accumulation CFAR and difference beam analysis.)
- 2020-10-19 16:07:25下载
- 积分:1
-
markov
求解马尔科夫过程的一个过程,输入转移强度矩阵后,可以求得状态概率(A process of solving Markov process, the intensity of the input transfer matrix, we can obtain the state probability)
- 2014-04-28 23:16:55下载
- 积分:1
-
Inverse-short-time-fourier-
使用matlab开发的短时傅立叶逆变换的例子,可以直接使用(Inverse short time fourier in matlab)
- 2015-08-22 21:15:54下载
- 积分:1
-
Binary-array-vector-sensor
声矢量传感器构成的二元相控阵声矢量传感器的指向性图代码(Sound of a dual vector sensor phased array acoustic vector sensor directionality figure code
)
- 2020-11-08 11:19:48下载
- 积分:1
-
KNN_toolbox
it s knn implementation by using toolbox matlab
- 2014-01-24 15:19:02下载
- 积分:1
-
psam
PanCOS/PSAM
技术参考手册,对PSAM编程特别有用(PanCOS/PSAM technical reference manual, programming is particularly useful on the PSAM)
- 2010-06-17 16:01:45下载
- 积分:1
-
grating
本帖调用自编函数(grating)绘制光栅条纹图像,通过例子讲解水平、竖直、环状和辐射状光栅条纹图像的绘制,用黑白和彩色显示效果给大家视觉上的震撼。调用自编函数时,可以通过成对出现的参数控制条纹的方向、颜色、周期、相位角等。(This post calls self-function (grating) draw grating image, by way of example to explain the horizontal, vertical, circular and radial grating image rendering, with monochrome and color display give you visual shock. Self function call, the parameters can be controlled by pairs stripe orientation, color, period, phase angle.)
- 2013-11-17 16:54:31下载
- 积分:1
-
planseperator
Plan separator: the code separate the bit 0 to 7 plans of an eight bits image. This is to allow image analysis and to know the most useful part of the image among its features.
- 2013-11-11 03:23:40下载
- 积分:1