2^x mod n = 1 acm競(jìng)賽題 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
標(biāo)簽: mod satisfies minimum number
上傳時(shí)間: 2015-06-02
上傳用戶:qlpqlq
代碼名稱: Snitz Forums 2000 代碼語言: 英文 代碼類型: 國外代碼 運(yùn)行環(huán)境: ASP 授權(quán)方式: 免費(fèi)代碼 代碼大小: 530kb 代碼等級(jí): 3 整理時(shí)間: 2006-3-15 16:42:00 聯(lián) 系 人: 開 發(fā) 商: 演示地址: 簡(jiǎn) 介: 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]
標(biāo)簽: 代碼 Forums Snitz 2000
上傳時(shí)間: 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.
標(biāo)簽: Arguments Function Replace oldstr
上傳時(shí)間: 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.
標(biāo)簽: TimerTask implements the class
上傳時(shí)間: 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下,可以通過設(shè)置黑色的輸出類型來控制輸出 * 在color mode下,可以通過設(shè)置各個(gè)顏色的輸出類型來控制輸出,7種 顏色以外的顏色都作為黑色來識(shí)別 * 在輸出多頁文件時(shí),可以分別指定每頁的輸出文件名,也可以使用自動(dòng) 添加頁號(hào)的功能 ... Known Problems ============== Developer Notes =============== * 在windows ddk 命令行環(huán)境下編譯 參考步驟: 1. 將W2kPrintDrv解壓至DDK安裝目錄 2. 執(zhí)行“開始”菜單->Developement Kits->Windows 2000 DDK->Checked Build Enviroment 3. 在命令行環(huán)境輸入 > cd W2kPrintDrv > build Author ====== terrificskyfox <terrificskyfox@yahoo.com.cn>
標(biāo)簽: W2kPrintDrvSample directions landscape portrait
上傳時(shí)間: 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.
上傳時(shí)間: 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).
標(biāo)簽: processing LSI converter Karaoke
上傳時(shí)間: 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.
標(biāo)簽: connection pool applications program
上傳時(shí)間: 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.
標(biāo)簽: Person-to-person communications applications realtime
上傳時(shí)間: 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
標(biāo)簽: information procedures developer messaging
上傳時(shí)間: 2013-12-14
上傳用戶:netwolf
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1