2^x mod n = 1 acm竞赛题 Give a number n, find the minimum x that satisfies 2^x mod n = 1. Input One positive integer on each line, the value of n. Output If the minimum x exists, print a line with 2^x mod n = 1. Print 2^? mod n = 1 otherwise. You should replace x and n with specific numbers. Sample Input 2 5 Sample Output 2^? mod 2 = 1 2^4 mod 5 = 1
标签: mod satisfies minimum number
上传时间: 2015-06-02
上传用户:qlpqlq
代码名称: Snitz Forums 2000 代码语言: 英文 代码类型: 国外代码 运行环境: ASP 授权方式: 免费代码 代码大小: 530kb 代码等级: 3 整理时间: 2006-3-15 16:42:00 联 系 人: 开 发 商: 演示地址: 简 介: Snitz Forums 2000, one of the best ASP based bulletin board systems on the market. Getting better every day! A complete board system (forum) that allows the user access to a friendly and intuitive interface. Snitz Forums 2000 v3.4.05 [74]
上传时间: 2015-06-03
上传用户:caixiaoxu26
LZW压缩和解压缩程序 lzw.c 主要的功能模块 bitio.c/bitio.h 一些支撑函数,支持以比特(bit)为单位的文件I/O 用法: 压缩 lzw E <in-file> <out-file> 解压缩 lzw D <in-file> <out-file> 压缩时,读入<in-file>中内容,压缩后存入<out-file>中,得到压缩文件。 解压缩时,读入<in-file>中内容,将结果存入<out-file>中,得到原文件。 本代码在linux+gcc/windows+vc下经过测试,为了使读者容易理解算法本身, 算法实现中仅采用了简单的错误处理机制和优化。
上传时间: 2015-06-08
上传用户:chenbhdt
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
上传用户:无聊来刷下
mmread reads virtually any media file. If Windows Media Play can play it, so should mmread. It uses the Window s DirectX infrastructure to % render the media, so other OSs are out of luck.
标签: mmread virtually Windows should
上传时间: 2015-06-11
上传用户:xuan‘nian
PathPlannerApp Manual With Tutorial.doc is a path planning-tutorial that provides detailed explanation and pseudo-codes. In order to get the most out of the tutorial, you should start with the "PathPlannerApp.base" and avoid looking through the "PathPlannerApp.solution" untill you have completed the project.
标签: planning-tutorial PathPlannerApp explanati Tutorial
上传时间: 2014-10-31
上传用户:yimoney
W2kPrintDrvSample Feature ======= * Support two page directions, portrait and landscape * Support just one page size, A4 * Support two resolutions, 200 x 200 and 100 x 100 dpi * Support two color mode, color(24bpp) and monochrom * Support halftoning in monochromatic mode * Support color identifying(7 colors) * Support type identifying(3 types) ... Usage ===== * 在monochromatic mode下,可以通过设置黑色的输出类型来控制输出 * 在color mode下,可以通过设置各个颜色的输出类型来控制输出,7种 颜色以外的颜色都作为黑色来识别 * 在输出多页文件时,可以分别指定每页的输出文件名,也可以使用自动 添加页号的功能 ... Known Problems ============== Developer Notes =============== * 在windows ddk 命令行环境下编译 参考步骤: 1. 将W2kPrintDrv解压至DDK安装目录 2. 执行“开始”菜单->Developement Kits->Windows 2000 DDK->Checked Build Enviroment 3. 在命令行环境输入 > cd W2kPrintDrv > build Author ====== terrificskyfox <terrificskyfox@yahoo.com.cn>
标签: W2kPrintDrvSample directions landscape portrait
上传时间: 2015-06-11
上传用户:GHF
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.
标签: according Customer Machine Server
上传时间: 2014-01-04
上传用户:jyycc
抽奖系统。营销活动现场,观众填写个人资料将表格交给录入人员产生编号进行抽奖,奖项分两等,现金奖3个,鼓励奖5个。画面由带TV-OUT的显卡发送到两台电视机和一台背头电视上。
标签: 营销
上传时间: 2015-06-15
上传用户:ikemada
JPG Graph API Win 32 JPG API is a 32bit JPEG api dll. You can call it to show a JPG file in your program by only one sentence. The only thing that you have to know is how to load a dll libary and how to call ist functions. A example of Visual FoxPro is supplied in package.
上传时间: 2015-06-23
上传用户:SimonQQ