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-26
上传用户: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-14
上传用户: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.功能 用全选主元高斯消去法计算矩阵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-27
上传用户:咔乐坞
资源简介:实现背包问题 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-07
上传用户: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-10
上传用户: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-16
上传用户: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-30
上传用户: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-25
上传用户:hn891122
资源简介:如果整数A的全部因子(包括1,不包括A本身)之和等于B;且整数B的全部因子(包括1,不包括B本身)之和等于A,则将整数A和B称为亲密数。求3000以内的全部亲密数。 *题目分析与算法设计 按照亲密数定义,要判断数a是否有亲密数,只要计算出a的全部因子的累加和为...
上传时间: 2015-04-24
上传用户:金宜
资源简介:The goal of this lab is (1) to under the defects of software timers, (2) to write a periodic program without timers, (3) to write a periodic program using timer Hardware:Host computer PC Software: GNU GCC
上传时间: 2014-08-13
上传用户:古谷仁美