(邮票问题) 设想一个国家发行n种不同面值的邮票,并假定每封信上至多只允许贴m张邮票。对于给定的m和n值,写一个算法求出从邮资1开始在增量为1的情况下可能获得的邮资值的最大连续区域以及获得此区域的各种可能面值的组合。例如:对于n=4和m=5,若有面值为(1,4,12,21)的四种邮票,则邮资最大连续区域为1到71。还有其他面值的四种邮票可组合成同样大小的区域吗
标签: 家
上传时间: 2013-12-22
上传用户:koulian
这个类允许你在所有的Windows平台下使用低级端口I/O接口存取并口数据。例子程序使用一个定制的MFC/C++类实现了PC到PC之间通过“PLT1”进行简单的C/S文件传输。
上传时间: 2015-08-30
上传用户:libenshu01
用Delphi编写的计算n!的方法,是用字符串转换的,速度很慢,可以用来与常规方法比较,了解各自的优越性
上传时间: 2014-01-06
上传用户:www240697738
Procedure TSPSA: begin init-of-T { T为初始温度} S={1,……,n} {S为初始值} termination=false while termination=false begin for i=1 to L do begin generate(S′form S) { 从当前回路S产生新回路S′} Δt:=f(S′))-f(S) {f(S)为路径总长} IF(Δt<0) OR (EXP(-Δt/T)>Random-of-[0,1]) S=S′ IF the-halt-condition-is-TRUE THEN termination=true End T_lower End End
标签: Procedure init-of-T TSPSA begin
上传时间: 2013-12-20
上传用户:shinesyh
Following is a repost of the public domain make that I posted to net.sources a couple of months ago. I have fixed a few bugs, and added some more features, and the resulting changes amounted to about as much text as the whole program (hence the repost).一个编译器C代码,详见REDME。
标签: Following sources domain couple
上传时间: 2015-09-01
上传用户:manlian
h264jm source code ,I hope every one can enjoy it,above all ,it will be helpful to every one
上传时间: 2015-09-01
上传用户:hfmm633
A complete set of bit banged, software driven I2C routines I created for any PIC device - and they work!! These functions are single master only functions, and are ideal for communicating with things like EEPROMs, LCD Drivers, ADC Converters etc
标签: complete routines software created
上传时间: 2013-12-17
上传用户:王小奇
MD5 加 密的V i s u a l C + + S o u r c e C o d e .
标签: MD5
上传时间: 2014-01-04
上传用户:lunshaomo
it is impotant to somepeople,all in good time,if you see it,must love it !thank you i f you see it,must love it !thank you
标签: you it somepeople see
上传时间: 2014-01-16
上传用户:xfbs821
N-TierProgramDevelopPattern Pattern of N-TierProgramDevelop
标签: N-TierProgramDevelopPattern N-TierProgramDevelop Pattern of
上传时间: 2013-12-31
上传用户:363186