解決時鐘問題,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
Micro In-System Programmer Brief Installation Notes Enter the src directory. If uisp does not compile successfully, add switch -DNO_DIRECT_IO in the Makefile to remove support for direct I/O port access (that may be necessary on non-PC architectures). Parallel port access should still work if you have the Linux ppdev driver (patch for 2.2.17 is in the kernel directory, ppdev is standard in 2.4 kernels). Please lobby Alan Cox to include this tiny little driver in 2.2.x too :). To make it type: make and to install it: make install If you have any further doubts, please consult UISP s homepage: http://www.nongnu.org/uisp/
標簽: Installation Programmer In-System directory
上傳時間: 2013-12-23
上傳用戶:小儒尼尼奧
Symbian手機編程,Setting List Box, 源代碼。
上傳時間: 2013-12-26
上傳用戶:weiwolkt
XMathLib是一個通用的3D圖形數學庫。 其中包含兩個部分: XMathLib和XGeomLib。分別處理數學和幾何運算。 數學部分包含向量、矩陣、四元數的運算。以及其它的運算。 幾何部分包含Box Frustum AABB OBB Ray Line Line-Segment Plan Triangle等的運算。
上傳時間: 2013-12-14
上傳用戶:hfmm633
用win32匯編編寫的類木馬的東西,運行后在機子上打開23端口,用telnet登陸,可以運行下列命令: open filename - open the file or program msg message - place message plainly over screen box message - show within a messagebox cdopen - to open CDROM drive door cdclose - to close CDROM drive door bye - terminate connection, handles one user at a time kill - terminate sparczerver
上傳時間: 2013-12-12
上傳用戶:wcl168881111111
一.“ZHG_C”(ZHG自定義C函數包)中為ZHG本人創作的自定義C函數集,現共包含8個C文件,分別是: BMP16.C——DOS圖形模式下顯示16色位圖的函數。 BMP24.C——DOS圖形模式下顯示24位位圖的函數。 BMP256.C——DOS圖形模式下顯示256色位圖的函數。 BOX.C——DOS字符模式下畫矩形框(單、雙)。 HZK.C——DOS圖形模式下顯示漢字或英文(16×16、24×24、12×12、ASC8×16)。INFORMATION.C——DOS字符模式下以統一格式顯示作者信息。 MOUSE.C——DOS圖形模式下使用鼠標所需的一系列函數。 PLAY.C——C語言中用鍵盤播放音樂的函數。 二.它們所包含的函數的作用及用法分別在相應的文件中有說明,在C/C++程序中直接調用這些函數,可以極大地提高編程效率,事半功倍。 三.該函數包將會隨著本人學習的發展而繼續改進、補充以及增加新的實用的文件。 ----Author: zhg 2006.12 E-mail: wudazhg@163.com All Rights Reserved
上傳時間: 2015-08-14
上傳用戶:talenthn
追加最小化按鈕: 利用JNI,給Java Dialog追加最小化按鈕。 Add Minimize box to java dialog。
上傳時間: 2013-12-06
上傳用戶:dragonhaixm
均勻分布的隨機數,并依此產生高斯分布隨機數,12和法和Box-Muller法產生高斯分布
上傳時間: 2015-09-15
上傳用戶:gououo
256色,320*200圖形方式下畫方框的例程BOX
標簽: 256
上傳時間: 2014-01-08
上傳用戶:bcjtao
一個完整的email客戶端代碼 Example program from Chapter 1 Programming Spiders, Bots and Aggregators in Java Copyright 2001 by Jeff Heaton SendMail is an example of client sockets. This program presents a simple dialog box that prompts the user for information about how to send a mail.
標簽: Aggregators Programming Example Chapter
上傳時間: 2015-10-04
上傳用戶:葉山豪