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

2.<b>18</b>

  • 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

  • s3c2410平台

    s3c2410平台,linux-2.4.18内核,控制芯片T6963的frambuff底层驱动

    标签: s3c2410

    上传时间: 2016-02-04

    上传用户:大融融rr

  • s3c2410平台

    s3c2410平台,linux-2.4.18内核,I/O口模拟ps/2口键盘驱动,含Makefile,直接编译使用

    标签: s3c2410

    上传时间: 2013-12-13

    上传用户:stewart·

  • 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

  • rt12864m样例程序

    rt12864m样例程序,管脚号 管脚名称 电平 管脚功能描述 1 VSS 0V 电源地 2 VCC +5V 电源正 3 V0 - 对比度(亮度)调整 4 RS(CS) H/L RS="H",表示DB7--DB0为显示数据 4 RS(CS) H/L RS="L",表示DB7--DB0为显示指令数据 5 R/W(SID) H/L R/W="H",E="H",数据被读到DB7--DB0 5 R/W(SID) H/L R/W="L",E="H→L", DB7--DB0的数据被写到IR或DR 6 E(SCLK) H/L 使能信号 7 DB0 H/L 三态数据线 8 DB1 H/L 三态数据线 9 DB2 H/L 三态数据线 10 DB3 H/L 三态数据线 11 DB4 H/L 三态数据线 12 DB5 H/L 三态数据线 13 DB6 H/L 三态数据线 14 DB7 H/L 三态数据线 15 PSB H/L H:8位或4位并口方式,L:串口方式(见注释1) 16 NC - 空脚 17 /RESET H/L 复位端,低电平有效(见注释2) 18 VOUT - LCD驱动电压输出端 19 A VDD 背光源正端(+5V)(见注释3) 20 K VSS 背光源负端(见注释3)

    标签: 12864m 12864 rt 程序

    上传时间: 2016-04-17

    上传用户:xhz1993

  • 该驱动程序是针对2410开发板的LED灯的驱动

    该驱动程序是针对2410开发板的LED灯的驱动,内附驱动测试程序。Linux内核源码版本2.6.18.4

    标签: 2410 LED 驱动程序 开发板

    上传时间: 2013-12-25

    上传用户:vodssv

  • 合众达DM643开发板DEC643的截取静态图像例程

    合众达DM643开发板DEC643的截取静态图像例程,CCS 2.20.18版本开发

    标签: 643 DEC DM 合众达

    上传时间: 2017-02-20

    上传用户:asasasas

  • linux设备驱动第三版中文

    linux设备驱动第三版中文,基于2.6.18.10所写,有需要的朋友请下载!

    标签: linux 设备驱动

    上传时间: 2013-12-14

    上传用户:q123321

  • 芯片为 arm s3c2410

    芯片为 arm s3c2410,嵌入式linux系统,内核版本为2.4.18.读写指定nandflash 地址 内容驱动程序。用于保存网络芯片的mac地址。内核在启动时调用该地址内容作为mac地址。

    标签: s3c2410 arm 芯片

    上传时间: 2014-02-26

    上传用户:cooran

  • 一个完整的linux按键驱动程序

    一个完整的linux按键驱动程序,内核版本2.6.18,在s3c2440arm处理器上测试通过。对于初学linux设备驱动的人很有好处。

    标签: linux 按键驱动 程序

    上传时间: 2014-01-07

    上传用户:jyycc