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

定时<b>开关机</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-16

    上传用户:jeffery

  • 使用MCU PIC12F508接收红外遥控器代码

    使用MCU PIC12F508接收红外遥控器代码,进行解码后控制IPOD进行音量、歌曲、开关机等控制

    标签: F508 MCU 12F 508

    上传时间: 2016-01-29

    上传用户:manlian

  • 近段时间闲来无事做了一款AV和HI-FI两用的前级

    近段时间闲来无事做了一款AV和HI-FI两用的前级,采用音量音调处理芯片PT2322完成音量音调的处理,支持六声道音量0~15分贝可调,高中低音支持-7db~+7db可调,总音量支持0~79分贝可调,步进为2分贝每次,并且具有静音、3D和直通功能,不论是在听音乐还是在看电影两不误;采用pt2323实现音源输入选择和2声道转换成6声道的功能,支持四组普通立体声输入和一组DVD六声道输入,并且能够将四组立体声其中的任何一组转换成六声道,即使是用VCD看普通碟片时也能欣赏到有如DVD一样的环绕音效。由于PT2323和PT2322支持I2C总线控制,利用89c51对其进行控制,PCB板连线方便,控制简单。本板除了以上功能外,还特留有一个输出口,用来控制后面所接的功率放大模块的电源的关断,以实现遥控开关机,静音时也将功率放大模块的电源模块关断,以实现节能的目的。本电路还有一个重要特点,整个电路采用单5V电源供电,接口简单,连线方便,便入摩机用。人对电路操作主要有两种方式,一是通过键盘来进行控制,二是通过配有的红处的遥控接收头来控制,遥控器可选市面上很容易买到的由TC9148型的遥控器即可。本人提供少量PCB板,供爱好音响和单片机的同行做实验, 如有需要也可提供全套散件或成品板。

    标签: HI-FI 前级

    上传时间: 2016-03-11

    上传用户:luopoguixiong

  • 用游标的方法实现对称差的计算

    用游标的方法实现对称差的计算,即 (A-B)+(B-A)

    标签: 对称 计算

    上传时间: 2016-05-23

    上传用户:远远ssad

  • uclinux下用cgi 实现直流电机控制

    uclinux下用cgi 实现直流电机控制,系统的远程开关机,远程系统重起,以及远程修改系统的IP,显示当前系统信息等功能。

    标签: uclinux cgi 直流电机控制

    上传时间: 2014-01-05

    上传用户:417313137

  • 词法分析器 对输入一个函数

    词法分析器 对输入一个函数,并对其分析main() { int a,b a = 10 b = a + 20 }

    标签: 分析器 函数 输入

    上传时间: 2013-12-20

    上传用户:hfmm633

  • 基因算法

    基因算法,用VC++或MATLAB,java等工具设计一程序计算任一个随机产生的DNA基因表达式的有效长度和值 设随机产生的基因表达式为: + Q - / b * b a Q b a a b a a b b a a a b

    标签: 基因 算法

    上传时间: 2014-01-09

    上传用户:aa54

  • 函数再现机构设计 试设计一曲柄摇杆机构

    函数再现机构设计 试设计一曲柄摇杆机构,再现函数 要求: 输入构件的转角范围180°,输出构件摆角范围30°,即: 当输入构件从a转至a+90时,输出构件从b转至b+30 当输入构件从a+90转至a+180时,输出构件从b+30转至b

    标签: 机构 函数 曲柄

    上传时间: 2013-12-17

    上传用户:英雄

  • 远程控制示例

    远程控制示例,Delphi7编译通过,包括开关机,以及文件浏览,远程抓图等功能(有详细中文注释)-

    标签: 远程控制

    上传时间: 2016-10-02

    上传用户:cazjing

  • 这个连接池是直接从JIVE中取出来的

    这个连接池是直接从JIVE中取出来的,进行了一下修改,使得连接参数直接在程序中设定而不是从属性文件中读取。 [b]用法:[/b] 先设定自己的连接参数,在DbConnectionDefaultPool.java文件的loadProperties方法中。注意你也需要设定连接池的log文件的存放位置。

    标签: JIVE 连接

    上传时间: 2016-11-21

    上传用户:TF2015