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

2.<b>3</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

  • 给出从自然数1

    给出从自然数1,2,3,....,n中任取k个数的所有组合.

    标签:

    上传时间: 2013-12-24

    上传用户:hphh

  • N个游戏者围成一圈

    N个游戏者围成一圈,从第一个人开始顺序报数1,2,3。凡报到3者退出圈子。

    标签:

    上传时间: 2013-12-02

    上传用户:jyycc

  • 本程序实做MLP(Multi-layer perceptron)算法

    本程序实做MLP(Multi-layer perceptron)算法,使用者可以自行设定训练数据集与测试数据集,将训练数据集加载,在2、3维下可以显示其分布状态,并分别设定键节值、学习率、迭代次数来训练其类神经网络,最后可观看辨识率与RMSE(Root Mean squared error)来判别训练是否可以停止。

    标签: Multi-layer perceptron MLP 程序

    上传时间: 2013-12-24

    上传用户:caozhizhi

  • 约瑟夫环问题算法的优化 1、问题描述: 已知n个人(以编号1

    约瑟夫环问题算法的优化 1、问题描述: 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列,求最后出列的哪一个人。

    标签: 算法

    上传时间: 2016-02-23

    上传用户:evil

  • 车厢调度假设停在铁路调度站入口处的车厢序列的编号依次为1

    车厢调度假设停在铁路调度站入口处的车厢序列的编号依次为1,2,3……N。设计一个程序,求出所有由此输出的长度为N的车厢序列。

    标签: 调度 序列

    上传时间: 2014-11-27

    上传用户:zl5712176

  • 编写程序对八皇后问题进行求解:在8行8列的棋盘上放置8个皇后

    编写程序对八皇后问题进行求解:在8行8列的棋盘上放置8个皇后,使任一个皇后都不能吃掉其他的7个皇后(注:皇后可吃掉与她处于同行或同列或同一对角线上的其他棋子),并将结果以某种方式显示出来。 例如,当求出下述的一个解时,可输出如下信息来表示该解(输出了表示摆放皇后的坐标位置以及“棋盘状态”— 棋盘中有皇后的位置放一个“Q”字符,其他位置为“+”字符)。 (1,1) (5,2) (8,3) (6,4) (3,5) (7,6) (2,7) (4,8) Q + + + + + + + + + + + + + Q + + + + + Q + + + + + + + + + + Q + Q + + + + + + + + + Q + + + + + + + + + Q + + + + Q + + + + +

    标签: 编写 程序

    上传时间: 2016-02-27

    上传用户:ynwbosss

  • Laoen 加密器 V1.0

    Laoen 加密器 V1.0,可对任意类型文件进行加(解)密,操作十分简便。文件加(解)密速度极快。是学习加密技术不可多得的入门范本。LaoenED V1.0 for DOS小巧精干,完全可以作为DOS扩充的外部命令使用(拷贝至c:\windows\command or c:\dos)。 本次发布的Laoen加密器V1.0有2个版本(DOS/Windows): 版本 文件 大小 编译平台 1、LaoenED V1.0 for DOS LaoenED.com 10.5k Turbo C 2.0 2、LaoenED V1.0 for DOS LaoenED.exe 25k Turbo C 2.0 3、LaoenED V1.0 for Windows LaoenED.exe 240k Visual C++ 6.0 这两个版本完全兼容,可以相互交替加(解)密。让你充分体会C/C++的异同。本软件包含密码查看器LookPW.exe,需要者请直接与作者联系(slq_07@sina.com/beetle@jt.yn ). Laoen 加密器 (袖珍型) 1.0 版,为一纯绿色免费软件。您可以任意复制、传播。谢谢使用! ~O~

    标签: Laoen 1.0 加密器

    上传时间: 2016-02-29

    上传用户:tzl1975

  • 系统以SPCE061A为核心

    系统以SPCE061A为核心,检测键盘模块和流量检测模块,根据检测结果按照程序设定的方式去控制红绿灯模块、倒计时数码管模块和放音模块。本系统共有4组双色LED指示灯,分别接交通灯模组的CS0、CS1、CS2、CS3脚,由61板的IOB的0、1、2、3脚供电,20盏灯的亮暗变化分成4种状态,每种状态亮5盏灯,由程序决定亮哪5盏;4个数码管的高位都接CS4脚,由61板的IOB的4脚供电, 低位都接CS5脚, 由61板的IOB的5脚供电,由键盘输入其倒计时间,数码管每秒钟变化一次;由61板内部的DAC控制播音。

    标签: SPCE 061A 061

    上传时间: 2016-03-14

    上传用户:love1314

  • 使用时打开此例题目录下pic中的图片

    使用时打开此例题目录下pic中的图片,然后依次单击按钮“转”、“1”、“2”、“3”、“4”和“5”,就可以实现精确的车牌定位。

    标签: pic 目录

    上传时间: 2014-07-05

    上传用户:love_stanford