Input The input contains blocks of 2 lines. The first line contains the number of sticks parts after cutting, there are at most 64 sticks. The second line contains the lengths of those parts separated by the space. The last line of the file contains zero. Output The output should contains the smallest possible length of original sticks, one per line. Sample Input 9 5 2 1 5 2 1 5 2 1 4 1 2 3 4 0 Sample Output 6 5
标签: contains The blocks number
上传时间: 2015-10-27
上传用户:lepoke
The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
标签: converts Toolbox complex logical
上传时间: 2016-02-12
上传用户:a673761058
很好的搜索: 给你很多长度不定的木棒,将他们分成几组,每组中的总长度作为这组的标示值,请给出一种分组方法,能使得所有标示值中的最小值最大。 Input 多组,每组两行,第一行是一个N和K,代表有N根木棒,分成K组,第二行是N个数字,代表木棒的长度。(N不超过100,K不超过20,每根木棒长度不超过1000) Output 输出所有标示值中的最小值的最大值。 Sample Input 5 3 1 3 5 7 9 5 3 89 59 68 35 29 Sample Output 8 89
上传时间: 2013-12-23
上传用户:nairui21
键盘扫描程序,线翻转扫描法。 使用mege32 键盘为3×4的行列键盘 /********************************************************* / 线翻转法键盘扫描程序,只检测和处理单键,多键按下返回12 / www.avrvi.com http://bbs.avrvi.com / /高三位列 p456,低四位行p0123 /键盘排列如下: 2 1 0 -------------- 3| 1 2 3 | 2| 4 5 6 | 1| 7 8 9 | 0| * 0 # | --------------
标签: 键盘扫描程序
上传时间: 2016-05-04
上传用户:515414293
这是一个字母或数制之间的转化程序,5为主模块,调用模块1和模块7 模块1又调用模块2、3、4和6四个模块,其中: 模块2实现小写字母向大写字母的转换 模块3实现大写字母向小写字母的转换 模块4实现二进制数向十六进制数的转换 模块6实现十六进制数向二进制数的转换 模块7实现十六进制数向十进制数的转换 按“q”键退出。 使用时,需将7个文件分别汇编,连接的方法为: 5+1+2+3+4+6+7 生成可执行文件“5” 即可运行。
上传时间: 2014-01-25
上传用户:lgnf
Problem A:放苹果 Time Limit:1000MS Memory Limit:65536K Total Submit:1094 Accepted:441 Language: not limited Description 把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。 Input 第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。 Output 对输入的每组数据M和N,用一行输出相应的K。 Sample Input 1 7 3 Sample Output 8
标签: Limit Accepted Language Problem
上传时间: 2016-11-30
上传用户:leixinzhuo
symbian C++ 入门经典 初学者必读,step by step 目录 1 概述 5 2 预备知识 5 3 Symbian OS Platform及应用开发5 3.1 内核和用户库.5 3.2 文件和目录5 3.3 目标平台及其变种6 3.4 Symbian OS的目标类型.6 4 应用开发工具包(SDKs)和工具7 4.1 SDK安装后的目录结构.7 4.1.1 根目录.7 4.1.2 Epoc32\.7 4.1.3 Epoc32Ex\8 4.2 应用构建工具.8 4.2.1 项目定义文件9 4.2.2 组件描述文件(bld.inf)9 4.2.3 bldmake命令9 5 渐进式指导10 5.1 控制台应用.10 5.2 基本源文件.10 5.3 构建应用.10 5.4 运行应用.11 6 深入研讨 13
上传时间: 2014-01-19
上传用户:yuanyuan123
汉诺塔!!! Simulate the movement of the Towers of Hanoi puzzle Bonus is possible for using animation eg. if n = 2 A→B A→C B→C if n = 3 A→C A→B C→B A→C B→A B→C A→C
标签: the animation Simulate movement
上传时间: 2017-02-11
上传用户:waizhang
附录 光盘说明 本书附赠的光盘包括各章节实例的设计工程与源码,所有工程在下列软件环境下运行通过: ? Windows XP SP2 ? MATLAB ? Altera Quartus II ? synplify8.4 ? modelsim_ae6.1 光盘目录与实例名称的对应关系如下: cht02文件夹中存放的是书中第2章中的例子,读者可以将一些简单例子的代码 拷贝到MATLAB命令窗口进行运行,也可以把一些复杂的例子做成一个单独 的*.m文件然后运行、调试(要将每行前的“>>”删除)。 cht04文件夹存放的是书中第4章的例子代码。每个例子都建立了一个单独的文件夹, 除了存放与例子相关的代码外,还对各个例子建立了Quartus II工程,编制了仿真测试向量,并对例子进行了编译、综合、布局布线和时序仿真。 cht05文件夹中存放的是一个完整的正弦波频率产生的例子,即书中5.4.1节中的代码, 读者可以应用这些代码建立自己的项目,按照书中介绍的方法,获得完整的项目设计经验。 注意事项: 光盘中的源代码为作者编写,并调试通过,有兴趣的读者可以在此基础上进行二次开发,但请不要用作商业用途。
上传时间: 2013-12-05
上传用户:zhaiye
原创,STM32F103R8T6为控制器,芯片内部的实时时钟以0.5秒1次向串口发送数据,串口使用了软件FIFO,使用了UCOSII系统,编译环境IAR5.20
标签:
上传时间: 2013-12-30
上传用户:gyq