-
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
-
Frequency-Synthesis-by-Phase-Lock
说明: 老外的一本绝版好书,绝版~有钱买不到的东西(Foreigners an out of print books, out of print ~ the things money can not buy)
- 2011-04-07 10:01:19下载
- 积分:1
-
izigzag_kaiyuan
图形图象中dct变换中用到的反zigzag扫描原代码是基于matlab中的开发(graphic images used Copy transform the anti-Zigzag scanning source code, which is based on Matlab Development)
- 2006-12-11 09:51:10下载
- 积分:1
-
cor_embed_mod
image watermarking method
- 2011-06-13 18:23:52下载
- 积分:1
-
matlab-11212
matlab code remote sensing
- 2012-04-14 18:41:31下载
- 积分:1
-
3x3-neighbor-pixel
Description
All the filters have needed neighbor data the current pixel in the image,here this function(res_window=cover_window(how many neighbor value for row ,how many neighbor value for column ,input image) produce the result( res_window(row,col,total size))
input
inp_img=2d data(row * col)
w=cover size
w=[3 3] = 3x3 cover pixel generation
output
o_img=result 3d
o_img(w(1),w(2),r*col)
if
inp_img=[1 2 3 4 5 6 ]
w=[3 3]
Soloution
it will construct new image
new_img=[0 0 0 0 0 0 1 2 3 0 0 4 5 6 0 0 0 0 0 0]
result
o_img(:,:,1)=[0 0 0 0 1 2 0 4 5]
o_img(:,:,2)=[0 0 0 1 2 3 4 5 6]
finally
o_img(1:3,1:3,6)
example
a=imread( pears.png )
b=rgb2gray(a)
c=cover_window( b,[3 3]) 3x3 window construction
- 2014-10-24 17:14:14下载
- 积分:1
-
pd_swerling1
雷达系统中用于计算起伏目标的检测概率,适用于Swerling I型目标。(Used to calculate the undulation target detection probability, applies Swerling I target.)
- 2013-03-22 19:48:36下载
- 积分:1
-
myidiq111
基于瞬时无功功率理论ip-iq法的仿真模型,实际工程中的使用。希望对大家有帮助(The simulation model of instantaneous reactive power theory ip-iq method based on, we want to help)
- 2014-11-27 18:29:19下载
- 积分:1
-
SRIMRangeDist
SRIM is a software that does Monte Carlo simulation of ion implantations. It can estimate the distribution of ions and target damages after an implantation. SRIMRangeDist helps SRIM users to plot the ion distribution data a SRIM output with relative ease. In some occassions, SRIM users need to calculate the distribution statistics of a series of several ion implantations and do a trial-and-error work to get the optimal implantation parameters. Performing this kind of task manually in a data processing software can be a bit mundane. SRIMRangeDist allows users to plot multiple implantation profiles on the same graph, and it computes the total distribution and the 95 confidence interval of the distribution for a quick reviewing of many implantation scenarios.
- 2016-08-16 02:04:26下载
- 积分:1
-
GM_danxuxingfa
利用灰色系统理论GM进行预测的matlab代码,可用。(GM gray system theory to predict the matlab code is available.)
- 2010-09-09 09:53:42下载
- 积分:1