虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

2<b>5</b>4

  • We have a group of N items (represented by integers from 1 to N), and we know that there is some tot

    We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.

    标签: represented integers group items

    上传时间: 2016-01-17

    上传用户:jeffery

  • The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical)

    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

  • 自动卖报机

    自动卖报机,5分一份,有1,2,5分类型的硬币。verilog状态机

    标签: 自动

    上传时间: 2013-12-20

    上传用户:BIBI

  • VB串口实例导航 1. 如果是在Win98操作系统下

    VB串口实例导航 1. 如果是在Win98操作系统下,程序中又调用ADO时,VB打开实例项目可能会提示不认ADO对象,这时需要您安装ADO。 2. 对于第2章和第4章,请将winio.dll、winio.vxd和winio.sys文件复制到可执行文件所在目录下, 否则可能会发生找不到Dll的错误。

    标签: Win 98 串口 导航

    上传时间: 2013-12-29

    上传用户:古谷仁美

  • 本点阵电子显示屏系统以STC89C52单片机作为控制核心

    本点阵电子显示屏系统以STC89C52单片机作为控制核心,其外围电路包括存储器扩展模块、LED显示电路模块、驱动电路模块、PC通信电路模块。其中,控制芯片的行驱动用2个74LS138构成4-16译码器,采用1/16扫描方式。列驱动采用74HC595驱动,一个汉字用2个74HC595控制。系统同时扩展了SRAM芯片6116和Flash ROM 29C020芯片, 系统控制过程中,可以满足大容量字模的运算,采用Flash ROM进行汉字掉电保护,通过单片机修改显示内容。并详细介绍了在硬件和软件上的实现过程。 本设计中第二章讲述系统方案的设计与分析;第三章讲述LED点阵显示系统的核心硬件设计,主要包括控制芯片、显示电路和驱动电路的设计等;第四章详细介绍了系统核心软件——静态显示程序的设计过程,之后以左移显示程序为例介绍动态显示程序的设计以及主程序的设计;第五章对PC通信协议及软硬件设计予以详细介绍。 如需详细的硬件电路及说明,可以与作者联系!

    标签: STC 89C C52 89

    上传时间: 2014-06-24

    上传用户:lyy1234

  • 史上最强的s3c2410中文手册

    史上最强的s3c2410中文手册,含第1,2,5,6,8,15,16章,是研究ARM9的非常难得的好资料!

    标签: s3c2410

    上传时间: 2016-04-07

    上传用户:阿四AIR

  • 目前较为全面的S3C2410的中文数据手册

    目前较为全面的S3C2410的中文数据手册,包括:1、2、5、6、8、15、16章。

    标签: S3C2410 数据手册

    上传时间: 2014-03-04

    上传用户:450976175

  • 电子扫描器。主要实现16路扫描输出

    电子扫描器。主要实现16路扫描输出,通过四个按键实现1、2、3、4路切换输出。

    标签: 电子 扫描器 输出

    上传时间: 2016-04-25

    上传用户:pkkkkp

  • 液晶驱动1621B的驱动程序

    液晶驱动1621B的驱动程序,后面编写测试程序,1621驱动4段LCD,显示1,2,3,4

    标签: 1621B 液晶驱动 驱动程序

    上传时间: 2013-12-19

    上传用户:semi1981

  • YD_T 1363.1-2005通信局(站)电源空调及环境集中监控管理系统(第1

    YD_T 1363.1-2005通信局(站)电源空调及环境集中监控管理系统(第1,2,3,4全系列) 网上下载比较难,Share给各位大家!

    标签: 1363.1 YD_T 2005 通信

    上传时间: 2014-01-18

    上传用户:heart520beat