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
* Function: * 1. Replace the first oldstr with newstr in srcstr * Arguments: * IN : * srcstr * oldstr * newstr * OUT : * srcstr * Return: * 1. If find and replace one oldstr with newstr in srcstr , return 1 * 2. If find no oldstr in srcstr , return 0 * 3. If error (malloc return NULL) return -1 * Notes: * 1. srcstr should be large size enough.
标签: Arguments Function Replace oldstr
上传时间: 2014-12-20
上传用户:Yukiseop
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
上传用户:无聊来刷下
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
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
YSS915 (KP2V2) is an LSI for processing Karaoke voice signals. This LSI has an A/D converter (1 channel) for the microphone echo, and a memory for the microphone echo and key control. These features allow achieving the functions needed for the Karaoke system by using only one LSI chip. As for the microphone echoes, many other types of echoes are available in addition to ordinary ones so that YSS915 is applicable to various uses. In addition to these Karaoke programs, YSS915 is able to provide the Movie & Music programs, with which the surround effect is applied to the movie and music sources for giving the users more enjoyment. YSS915 is pin compatible with and register compatible with YSS903 (KP2V).
标签: processing LSI converter Karaoke
上传时间: 2015-06-23
上传用户:lijianyu172
Many applications use connection/object pool. A program may require a IMAP connection pool and LDAP connection pool. One could easily implement a IMAP connection pool, then take the existing code and implement a LDAP connection pool. The program grows, and now there is a need for a pool of threads. So just take the IMAP connection pool and convert that to a pool of threads (Copy, paste, find, replace????). Need to make some changes to the pool implementation? Not a very easy task, since the code has been duplicated in many places. Re-inventing source code is not an intelligent approach in an object oriented environment which encourages re-usability. It seems to make more sense to implement a pool that can contain any arbitrary type rather than duplicating code. How does one do that? The answer is to use type parameterization, more commonly referred to as templates.
标签: connection pool applications program
上传时间: 2013-12-25
上传用户:playboys0
Person-to-person realtime IP communications, like presence, VoIP and video applications, offer clear benefits for the enterprise as time- and money-savers. Unified functionality is now available, where all of the above are integrated into one streamlined application and interconnect with other networks. This creates a very important business tool and usage is increasing.
标签: Person-to-person communications applications realtime
上传时间: 2015-06-28
上传用户:维子哥哥
This book provides information about the concepts and procedures needed by a developer of messaging applications in a Sun™ ONE Message Queue (MQ) environment. This preface contains the following sections: • Audience for This Guide • Organization of This Guide • Conventions • Other Documentation Resources
标签: information procedures developer messaging
上传时间: 2013-12-14
上传用户:netwolf