解决时钟问题,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
上传用户:叶山豪