解決時(shí)鐘問(wèn)題,acm競(jìng)賽題 A weird clock marked from 0 to 59 has only a minute hand. It won t move until a special coin is thrown into its box. There are different kinds of coins as your options. However once you make your choice, you cannot use any other kind. There are infinite number of coins of each kind, each marked with a number d ( 0 <= 1000 ), meaning that this coin will make the minute hand move d times clockwise the current time. For example, if the current time is 45, and d = 2. Then the minute hand will move clockwise 90 minutes and will be pointing to 15. Now you are given the initial time s ( 0 <= s <= 59 ) and the coin s type d. Write a program to find the minimum number of d-coins needed to turn the minute hand back to 0.
標(biāo)簽: 時(shí)鐘
上傳時(shí)間: 2015-05-21
上傳用戶(hù):rishian
Decoding most of the infrared signals can be easily handled by PIC16C5X microcontrollers. This application note describes how this decoding may be done. The only mandatory hardware for decoding IR signals is an infrared receiver. The use of two types is described here. Both are modular types used often by the consumer electronics industry. The first type responds to infrared signals modulated at about 40 kHz. The second responds to non-modulated infrared pulses and has a restricted range. The hardware costs of each approach will be less than two dollars.
標(biāo)簽: microcontrollers Decoding infrared handled
上傳時(shí)間: 2015-05-24
上傳用戶(hù):ruan2570406
Far too many programmers and software designers consider efficient C++ to be an oxymoron. They regard C++ as inherently slow and inappropriate for performancecritical applications. Consequently, C++ has had little success penetrating domains such as networking, operating system kernels, device drivers, and others.
標(biāo)簽: programmers designers efficient consider
上傳時(shí)間: 2013-11-30
上傳用戶(hù):zsjzc
This toolbox contains Matlab code for several graph and mesh partitioning methods, including geometric, spectral, geometric spectral, and coordinate bisection. It also has routines to generate recursive multiway partitions, vertex separators, and nested dissection orderings and it has some sample meshes and mesh generators. The toolbox contains a Matlab interface to Leland and Hendrickson s Chaco partitioning package, but it doesn t contain Chaco itself. The file "chaco/README" tells how to install the interface to Chaco. It also contains a Matlab interface to Karypis et al. s Metis partitioning package, using Robert Bridson s "metismex" code.
標(biāo)簽: partitioning including contains toolbox
上傳時(shí)間: 2015-05-25
上傳用戶(hù):tzl1975
Hidden Markov Toolkit (HTK) 3.2.1 HTK is a toolkit for use in research into automatic speech recognition and has been developed by the Speech Vision Robotics Group at the Cambridge University Engineering Department (http://svr-www.eng.cam.ac.uk) and Entropic Ltd (http://www.entropic.com).
標(biāo)簽: HTK automatic research Toolkit
上傳時(shí)間: 2015-05-26
上傳用戶(hù):myworkpost
This example imports a text file into a database table using ADO. Because it uses ADO, it should work with all data sources, though it has only been tested with Access. Usage is explained in the code s comments.
標(biāo)簽: ADO database Because example
上傳時(shí)間: 2013-12-27
上傳用戶(hù):1079836864
一個(gè)游戲 the hardware for the game includes a number of displays, each with a button and -- a light, that each represent a bin that can store marbles (beans). -- -- The display indicates the number of marbles in each bin at any given time. -- The light indecates that the present bin is not empty and that pushing the -- button is a valid move in the game. -- -- The button for each display indicates that a player takes the marbles from -- the selected bin, and takes them in his hand. The hand is represented by a -- diplay itself (no button). -- -- Each player has a home bin, located on opposite sides of the game.
標(biāo)簽: the hardware displays includes
上傳時(shí)間: 2015-06-10
上傳用戶(hù):cc1015285075
Due to an increase in demand for and questions about direct disk access for Micrososft platforms, and due to the fact that Microsoft has no API for direct disk access, I am releasing this library much earlier than I intended at that start. I am still working on this code.
標(biāo)簽: Micrososft for questions platforms
上傳時(shí)間: 2014-01-26
上傳用戶(hù):xaijhqx
The JICQ is the bureau area which JAVA writes according to "Customer s Machine/Server"(C/S) mode message solid hour correspond by letter tool system, the system adopted the SQL Server2000 of Microsoft company as a backstage database, the system passes a JDBC interview database. The system is divided into the server procedure and customer s procedure two parts, server and customer adoption "Transmission Control Protocol"(TCP), connect a word (Socket) conjunction through a set, the adoption "User Datagram Protocol "(UDP) of the customer s, pass a data report a set to connect a word (DatagramSocket) establishment a conjunction. The system has customer registration, customer to register, increase good friend, delete good friend and send out and receive news etc. function.
標(biāo)簽: according Customer Machine Server
上傳時(shí)間: 2014-01-04
上傳用戶(hù):jyycc
a non-sharing smart pointer class that can be used with STL containers such as std::map, vector, list, set, and deque. The smart pointer has an assignment operator and greater than operator that call the target object s operator.
標(biāo)簽: non-sharing containers pointer vector
上傳時(shí)間: 2015-06-15
上傳用戶(hù):Late_Li
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1