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
資源簡介: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^?...
上傳時間: 2015-06-02
上傳用戶:qlpqlq
資源簡介:Implement the step 2 of two-level logic minimization. Our goal is to find the minimum (exact minimum) sum-of-products expression for a given function.
上傳時間: 2014-01-09
上傳用戶:無聊來刷下
資源簡介:a complete model of the double star induction motor by matlab/simulink 7.1
上傳時間: 2014-07-27
上傳用戶:sclyutian
資源簡介:This book gives a concise description of the Java 2 programming language. They give a quick reference for the reader who has already learned (or is learning) Java from a standard textbook and who wants to know the language in more detail...
上傳時間: 2017-06-20
上傳用戶:asdkin
資源簡介:解決時鐘問題,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 ...
上傳時間: 2015-05-21
上傳用戶:rishian
資源簡介:This book contains a detailed analysis of the International Standard for the C language,-3.1 excluding the library from a number of perspectives. The organization of the material is unusual in that it is based on the actual text of the pu...
上傳時間: 2015-09-15
上傳用戶:13188549192
資源簡介:Demonstrates 1-D FDTD initial state formation. Please edit the FLAGS for demonstration of different cases. BASED ON "1-D Digital Waveguide modeling for Improved Sound Synthesis".
上傳時間: 2014-07-13
上傳用戶:WMC_geophy
資源簡介:These documents are all classic documents relating to the domain of virus writing.Give a good insight about the virus which are rare and are considered best for case studies..many variants are still being produced and all these are original...
上傳時間: 2017-08-18
上傳用戶:thuyenvinh
資源簡介:(1)輸入E條弧<j,k>,建立AOE-網的存儲結構 (2)從源點v出發,令ve[0]=0,按拓撲排序求其余各項頂點的最早發生時間ve[i](1<=i<=n-1).如果得到的拓樸有序序列中頂點個數小于網中頂點數n,則說明網中存在環,不能求關鍵路徑,算法終止 否則執行步驟(3)(3)從匯點v出發,令...
上傳時間: 2014-11-28
上傳用戶:fredguo
資源簡介:1.功能 用全選主元高斯消去法計算矩陣A的秩(C語言) 2.函數參數說明 double a[m][n] : 存放mxn階矩陣A的元素,返回時將被破壞 int m : 矩陣A的行數 int n : 矩陣A的列數 int rank() : 函數返回A的秩 3.文件說明 rank.c為函數程序 rank0.c為主函數...
上傳時間: 2015-09-03
上傳用戶:xuan‘nian
資源簡介:1.功能 用全選主元高斯消去法計算n階方陣A所對應的行列式的值(C語言) 2.參數說明 double a[n][n] : 存方陣A的元素,返回時被破壞 int n : 方陣A的階數 double sdet() : 函數返回行列式的值 3.文件說明 sdet.c為函數程序 sdet0.c為主函數程序
上傳時間: 2014-01-14
上傳用戶:rocwangdp
資源簡介:Preparation of a function, even to the importation of n, the function call seeking +1/n 1/2+1/4+ .... When n is odd input, the function call 1/1+1/3+ ... +1/n (using function pointer)
上傳時間: 2014-01-21
上傳用戶:semi1981
資源簡介:這是一個ACM中的題請大家看以下哈 如果有問題請多多指教 n個猴子圍坐一圈并按照順時針方向從1到n編號,從第s個猴子開始進行1到m的報數,報數到第m的猴子 退出報數,從緊挨它的下一個猴子重新開始1到m的報數,如此進行下去知道所有的猴子都退出為止。 求給...
上傳時間: 2014-01-01
上傳用戶:腳趾頭
資源簡介:算法實現題1-5 最大間隙問題 « 問題描述: 最大間隙問題:給定n 個實數x , , xn 1 2  ,求這n 個數在實軸上相鄰2 個數之間的最 大差值。假設對任何實數的下取整函數耗時O(1),設計解最大間隙問題的線性時間算法。 « 編程任務: 對于給...
上傳時間: 2016-05-28
上傳用戶:咔樂塢
資源簡介:實現背包問題 package problem 1. 問題描述 假設有一個能裝入總體積為T的背包和n件體積分別為w1 , w2 , … , wn 的物品,能否從n件物品中挑選若干件恰好裝滿背包,即使w1 +w2 + … + wn=T,要求找出所有滿足上述條件的解。例如:當T=10,各件物品的體積{1...
上傳時間: 2014-01-18
上傳用戶:yxgi5
資源簡介:設T[0:n-1]是n個元素的一個數組。對任一元素x,設S(x)={i|T[i]=x}。當|S(x)|>n/2時,稱x為T的主元素。設計一個線性時間算法,確定T[0:n]是否有一個主元素。
上傳時間: 2014-01-08
上傳用戶:daoxiang126
資源簡介:設T[0:n-1]是n個元素的一個數組。對任一元素x,設S(x)={i|T[i]=x}。當|S(x)|>n/2時,稱x為T的主元素。設計一個線性時間算法,確定T[0:n]是否有一個主元素。
上傳時間: 2013-12-13
上傳用戶:2525775
資源簡介:Floyd-Warshall算法描述 1)適用范圍: a)APSP(All Pairs Shortest Paths) b)稠密圖效果最佳 c)邊權可正可負 2)算法描述: a)初始化:dis[u,v]=w[u,v] b)For k:=1 to n For i:=1 to n For j:=1 to n If dis[i,j]>dis[i,k]+dis[k,j] Then Dis[I,j]:...
上傳時間: 2013-12-01
上傳用戶:dyctj
資源簡介:中南賽區ACM競賽題 Description Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located within the whole array. The sum of a rectangle is the sum of all th...
上傳時間: 2013-12-22
上傳用戶:lijianyu172
資源簡介:1. 進一步掌握和利用C語言進行程序設計的能力; 2. 進一步理解和運用結構化程序設計的思想和方法; 3. 初步掌握開發一個小型實用系統的基本方法; 4. 學會調試一個較長程序的基本方法; 5. 學會利用流程圖或N-S圖表示算法; 6. 掌握書寫程設計開發文檔的...
上傳時間: 2014-01-11
上傳用戶:zsjinju
資源簡介:1. 進一步掌握和利用C語言進行程序設計的能力; 2. 進一步理解和運用結構化程序設計的思想和方法; 3. 初步掌握開發一個小型實用系統的基本方法; 4. 學會調試一個較長程序的基本方法; 5. 學會利用流程圖或N-S圖表示算法; 6. 掌握書寫程設計開發文檔的...
上傳時間: 2013-12-21
上傳用戶:qq1604324866
資源簡介:RSA ( Rivest Shamir Adleman )is crypthograph system that used to give a secret information and digital signature . Its security based on Integer Factorization Problem (IFP). RSA uses an asymetric key. RSA was created by Rivest, Shamir, and ...
上傳時間: 2017-09-01
上傳用戶:chfanjiang
資源簡介:熟悉非常簡單CPU模擬器 1、將所給模擬器的源程序編譯成執行程序。 2、運行并觀察非常簡單CPU模擬器
上傳時間: 2013-12-09
上傳用戶:semi1981
資源簡介:學生成績管理系統 一個小程序 (1) 待開發的軟件名稱:學生成績管理系統 (2) 系統開發者為本小級各成員,系統使用者為各類學生
上傳時間: 2014-01-17
上傳用戶:zuozuo1215
資源簡介:使用說明: 1.打開電子表格文檔--全選--復制 2.切換到本程序--全選--粘貼 3.選擇匹配項:匹配條件 4.選擇輸出項:將要產生合并的項 5.點擊保存按鈕--結束。 歡迎訪問:www.digital_thought.go.nease.net
上傳時間: 2015-03-29
上傳用戶:xaijhqx
資源簡介:本程序用于測試實時時鐘模塊SD2000系列功能之一:四種中斷功能 程序功能如下: 1.在SD2000試驗板上顯示實時時間的小時和分鐘? 2./INT1 到指定時刻時輸出低電平. 3./INT2輸出固定頻率32768HZ. 4.測試每分鐘邊沿中斷輸出(INT modE3)和每分鐘固定中斷輸出(INT mod...
上傳時間: 2015-03-31
上傳用戶:lindor
資源簡介:程序主要功能如下: 1,可實現多域名的二級域名申請,添加多個域名 2,可限制各域名的注冊數 3,可對域名進行排序 3,可限制用戶多長時間內可注冊一次 4,可設置是否彈出廣告條,以及廣告窗口的大小. 5,可設置系統保留帳號,以及需屏蔽的敏感字符 6,用戶...
上傳時間: 2013-12-24
上傳用戶:123456wh
資源簡介:并用編程實現兩種LCD 驅動方式的基本原 理和方法;1.用總線方式直接驅動帶有驅動模塊的LCD。 2.用ARM 內置的LCD 控制器來驅動LCD。
上傳時間: 2015-04-18
上傳用戶:myworkpost
資源簡介:這是一道acm競賽題 是利用c語言來逐步求e精確值的大小
上傳時間: 2013-11-26
上傳用戶:hn891122
資源簡介:如果整數A的全部因子(包括1,不包括A本身)之和等于B;且整數B的全部因子(包括1,不包括B本身)之和等于A,則將整數A和B稱為親密數。求3000以內的全部親密數。 *題目分析與算法設計 按照親密數定義,要判斷數a是否有親密數,只要計算出a的全部因子的累加和為...
上傳時間: 2015-04-24
上傳用戶:金宜