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
* * Input * bin_data : binary data * bin_size : binary data length * Mode : operation mode * BASE64_NeedCRLF ---- Need a CRLF every 64 base64-character * BASE64_NotCRLF ---- Need not CRLF between 64 base64-character * * Output * char data * char data length * * Return * 0: success -1: error
標簽: binary data operation bin_data
上傳時間: 2015-06-04
上傳用戶:ZJX5201314
Routine mampres: To obtain amplitude response from h(exp(jw)). input parameters: h :n dimensioned complex array. the frequency response is stored in h(0) to h(n-1). n :the dimension of h and amp. fs :sampling frequency (Hz). iamp:If iamp=0: The Amplitude Res. amp(k)=abs(h(k)) If iamp=1: The Amplitude Res. amp(k)=20.*alog10(abs(h(k))). output parameters: amp :n dimensioned real array. the amplitude-frequency response is stored in amp(0) to amp(n-1). Note: this program will generate a data file "filename.dat" . in chapter 2
標簽: dimensione parameters amplitude response
上傳時間: 2013-12-19
上傳用戶:xfbs821
Routine mar1psd: To compute the power spectum by AR-model parameters. Input parameters: ip : AR model order (integer) ep : White noise variance of model input (real) ts : Sample interval in seconds (real) a : Complex array of AR parameters a(0) to a(ip) Output parameters: psdr : Real array of power spectral density values psdi : Real work array in chapter 12
標簽: parameters AR-model Routine mar1psd
上傳時間: 2015-06-09
上傳用戶:playboys0
對讀入的某個文本文件input.txt中,拆出英文單詞,輸出一個按字典順序排列的單詞表,結果輸出在文本文件output.txt中,每個單詞一行,并在單詞后輸出該單詞出現的個數,兩個字段之間用逗號分隔。約定單詞僅由英文字母組成,單詞間由非英文字母分隔,相同單詞只輸出一個,大小寫不區分。 利用二叉樹實現
上傳時間: 2015-07-04
上傳用戶:yulg
講述了Java Input/Output庫的主要包和類。有關Channel類和ByteBuffer類特別適用于對文件操作中的某些特殊要求。
標簽: ByteBuffer Channel Output Input
上傳時間: 2013-12-14
上傳用戶:GHF
IDCT-M is a medium speed 1D IDCT core -- it can accept a continous stream of 12-bit input words at a rate of -- 1 bit/ck cycle, operating at 50MHz speed, it can process MP@ML MPEG video -- the core is 100% synthesizable
標簽: continous IDCT-M accept medium
上傳時間: 2015-07-07
上傳用戶:1583060504
h.263 c編碼源碼。目錄下有input。qcif原始未壓縮文件,運行程序生成重建文件recon。qcif和壓縮后文件output。263文件。
上傳時間: 2013-12-19
上傳用戶:ljmwh2000
Computes estimates for the number of forests of a graph, input as a 0-1 incidence matrix. Notes: Compile in C++, "g++ -o span_forest span_forest.c". The program does not demand that the matrix is symmetric with 0 diagonal, but uses only the upper triangular part.
標簽: estimates incidence Computes forests
上傳時間: 2013-12-26
上傳用戶:com1com2
verilog編寫的狀態機檢測00100序列. 實現 input:...011000010010000... output:...000000000100100... 并且 用測試模塊來驗證狀態是否正確工作
標簽: 000000000100100 011000010010000 verilog output
上傳時間: 2015-07-14
上傳用戶:ggwz258