解決時鐘問題,acm競賽題 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.
標簽: 時鐘
上傳時間: 2015-05-21
上傳用戶: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.
標簽: microcontrollers Decoding infrared handled
上傳時間: 2015-05-24
上傳用戶:ruan2570406
這是sun公司的程序員考試書籍(英文版的pdf) 還有模擬考試安裝盤,和視頻!我將稍后發布! READ THIS AGREEMENT CAREFULLY. IF YOU AGREE TO ALL THE TERMS AND CONDITIONS SET FORTH BELOW AND ARE WILLING TO BE LEGALLY BOUND BY THEM, PRESS THE I AGREE BUTTON TO CONTINUE WITH THE SETUP. IF YOU DO NOT AGREE TO SUCH TERMS AND CONDITIONS, PRESS THE I DON T AGREE BUTTON TO ABORT THE INSTALLATION.
上傳時間: 2015-05-25
上傳用戶:ccclll
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.
標簽: ADO database Because example
上傳時間: 2013-12-27
上傳用戶:1079836864
This a simple genetic algorithm implementation where the evaluation function takes positive values only and the fitness of an individual is the same as the value of the objective function
標簽: implementation evaluation algorithm function
上傳時間: 2015-06-03
上傳用戶:2467478207
Tiny C Compiler - C Scripting Everywhere - The Smallest ANSI C compiler Installation on a i386 Linux host (for Windows read win32/readme.txt) ./configure make make test make install By default, tcc is installed in /usr/local/bin. ./configure --help shows configuration options.
標簽: Installation Everywhere Scripting Compiler
上傳時間: 2013-12-19
上傳用戶:zhangzhenyu
This class implements the same API as the Java 1.3 java.util.TimerTask. * Note that a TimerTask can only be scheduled on one Timer at a time, but * that this implementation does not enforce that constraint.
標簽: TimerTask implements the class
上傳時間: 2015-06-10
上傳用戶:無聊來刷下
DOS XMS library is a DOS real mode and large memory model C library. Because DOS is ran under real mode, programmer only can access RAM under 1MB
上傳時間: 2015-06-13
上傳用戶:ANRAN
Linux系統中,設備驅動程序是操作系統內核的重要組成部分,在 與硬件設備之間 建立了標準的抽象接口。通過這個接口,用戶可以像處理普通文件一樣,對硬件設 備進行打開(open)、關閉(close)、讀寫(read/write)等操作。通過分析和設計設 備驅動程序,可以深入理解Linux系統和進行系統開發
標簽: Linux
上傳時間: 2015-06-13
上傳用戶:litianchu
Memtest86 is thorough, stand alone memory test for Intel/AMD x86 architecture systems. BIOS based memory tests are only a quick check and often miss failures that are detected by Memtest86.
標簽: architecture thorough Memtest systems
上傳時間: 2014-11-30
上傳用戶:hn891122