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

GET-next

  • For solving the following problem: "There is No Free Lunch" Time Limit: 1 Second Memory Limit: 3

    For solving the following problem: "There is No Free Lunch" Time Limit: 1 Second Memory Limit: 32768 KB One day, CYJJ found an interesting piece of commercial from newspaper: the Cyber-restaurant was offering a kind of "Lunch Special" which was said that one could "buy one get two for free". That is, if you buy one of the dishes on their menu, denoted by di with price pi , you may get the two neighboring dishes di-1 and di+1 for free! If you pick up d1, then you may get d2 and the last one dn for free, and if you choose the last one dn, you may get dn-1 and d1 for free. However, after investigation CYJJ realized that there was no free lunch at all. The price pi of the i-th dish was actually calculated by adding up twice the cost ci of the dish and half of the costs of the two "free" dishes. Now given all the prices on the menu, you are asked to help CYJJ find the cost of each of the dishes.

    标签: Limit following solving problem

    上传时间: 2014-01-12

    上传用户:362279997

  • Build your own RFID reader with the http://www.elektor.es/ schematic. It works great with tag MiFare

    Build your own RFID reader with the http://www.elektor.es/ schematic. It works great with tag MiFare (ISO 14443). RFID writer will be here next.

    标签: with schematic elektor MiFare

    上传时间: 2016-11-15

    上传用户:a673761058

  • If you are using Internet Explorer on Windows XP Service Pack 2, there is a security restriction dis

    If you are using Internet Explorer on Windows XP Service Pack 2, there is a security restriction disallowing scripts to run in files opened on your local machine. When you first try to run the examples, you will most likely get a message saying, "To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer." To see the example, you must click on the message and select "Allow Blocked Content". JavaScript高级程序设计 里面自代源码

    标签: restriction Explorer Internet security

    上传时间: 2016-11-18

    上传用户:源弋弋

  • pstmt = conn.prepareStatement("select ordernumber,datetime,price,dayofmoney from zujie where ordernu

    pstmt = conn.prepareStatement("select ordernumber,datetime,price,dayofmoney from zujie where ordernumber= "+ cdName + " ") rs=pstmt.executeQuery() if(rs!=null && rs.next()){ String datetime = rs.getString(2) java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat ("yyyy-MM-dd") Date date = new Date() String date1=formatter.format(date) ParsePosition pos = new ParsePosition(0) ParsePosition pos1 = new ParsePosition(0) Date dt1=formatter.parse(datetime,pos) Date dt2=formatter.parse(date1,pos1) Long l = (dt2.getTime()-dt1.getTime())/(3600*24*1000)+1 double price = rs.getDouble(3) double dayofmoney=rs.getDouble(4) double dayofmoneybuy=dayofmoney*l double otherMoney = price-dayofmoneybuy request.setAttribute("price", price) request.setAttribute("l", l) request.setAttribute("dayofmoney", dayofmoneybuy) request.setAttribute("otherMoney", otherMoney)

    标签: prepareStatement ordernumber dayofmoney datetime

    上传时间: 2013-12-14

    上传用户:zsjinju

  • This toolbox was designed as a teaching aid, which matlab is particularly good for since source cod

    This toolbox was designed as a teaching aid, which matlab is particularly good for since source code is relatively legible and simple to modify. However, it is still reasonably fast if used with the supplied optimiser. However, if you really want to speed things up you should consider compiling the matrix composition routine for H into a mex function. Then again if you really want to speed things up you probably shouldn t be using matlab anyway... Get hold of a dedicated C program once you understand the algorithm.

    标签: particularly designed teaching toolbox

    上传时间: 2016-11-25

    上传用户:hustfanenze

  • Imperfect C++ Practical Solutions for Real-Life Programming C++, although a marvelous language, isn

    Imperfect C++ Practical Solutions for Real-Life Programming C++, although a marvelous language, isn t perfect. Matthew Wilson has been working with it for over a decade, and during that time he has found inherent limitations that require skillful workarounds. In this book, he doesn t just tell you what s wrong with C++, but offers practical techniques and tools for writing code that s more robust, flexible, efficient, and maintainable. He shows you how to tame C++ s complexity, cut through its vast array of paradigms, take back control over your code--and get far better results.

    标签: Programming Imperfect Practical Solutions

    上传时间: 2014-03-02

    上传用户:songrui

  • BlackBerry Hacks will enhance your mobile computing with great tips and tricks. You ll learn that th

    BlackBerry Hacks will enhance your mobile computing with great tips and tricks. You ll learn that the BlackBerry is capable of things you never thought possible, and you ll learn how to make it an even better email and web workhorse: Get the most out of the built-in applications Take control of email with filters, searches, and more Rev up your mobile gaming--whether you re an arcade addict or poker pro Browse the web, chat over IM, and keep up with news and weblogs Work with office documents, spell check your messages, and send faxes Become more secure, lock down your BlackBerry and stash secure information somewhere safe Manage and monitor the BlackBerry Enterprise Server (BES) and Mobile Data System (MDS) Create web sites that look great on a BlackBerry Develop and deploy BlackBerry applications

    标签: BlackBerry computing enhance mobile

    上传时间: 2016-12-07

    上传用户:GavinNeko

  • Purpose: --- -- This component is used for capturing staff from AVI to BMP. Installation:

    Purpose: --- -- This component is used for capturing staff from AVI to BMP. Installation: ------------- Extract the compiled units into your Lib directory or into another directory that is listed in the Library path in your Delphi options. Choose file AVIcap.dcu for register. description: ------------ AVIcap V2.0 used for capturing frame from AVI without drawing on the screen, that is essentially fast. It can be reached by using of avifil32.dll from MS Video For Windows. New property: number of bits per pixel of bitmap.Now you can save BMP using next formats: pf1bit, pf4bit, pf8bit, pf8bitGray, pf15bit, pf16bit, pf24bit, pf32bit, pfDevice. See example to detail.

    标签: Installation component capturing Purpose

    上传时间: 2016-12-13

    上传用户:TF2015

  • u-boot-lpc2294.patch u-boot的补丁文件

    u-boot-lpc2294.patch u-boot的补丁文件,使用方法见nxp网站上的uboot get started

    标签: u-boot-lpc u-boot patch 2294

    上传时间: 2014-01-14

    上传用户:tonyshao

  • linux下ftp服务器

    linux下ftp服务器,实现ls cd put get quit命令

    标签: linux ftp 服务器

    上传时间: 2016-12-26

    上传用户:xz85592677