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
This a online education system That has not been completed yet.We have a long way to go to consummate this system.Let s work hard together and obtain more and more knowledge !
标签: education completed consummat online
上传时间: 2015-06-04
上传用户:kelimu
The government of a small but important country has decided That the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means That a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet That contains the method choices That takes the decree as input and returns the number of possible new alphabets That conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition
标签: government streamline important alphabet
上传时间: 2015-06-09
上传用户:weixiao99
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
上传用户:无聊来刷下
PathPlannerApp Manual With Tutorial.doc is a path planning-tutorial That provides detailed explanation and pseudo-codes. In order to get the most out of the tutorial, you should start with the "PathPlannerApp.base" and avoid looking through the "PathPlannerApp.solution" untill you have completed the project.
标签: planning-tutorial PathPlannerApp explanati Tutorial
上传时间: 2014-10-31
上传用户:yimoney
A C++ N-grams Package 2.0 This is a simple C++ n-grams package That includes a header, the corresponding cpp file, and a sample driver program. It is a natural language processing tool for creating n-gram profiles for text documents. The details on usage is documented in the header right above each public function defined. This package is based on Dr. Vlado Keselj s Perl package Text::Ngrams which is available in CPAN.
标签: includes correspo N-grams Package
上传时间: 2015-06-12
上传用户:wfl_yy
This is a program That I did several days ago.It is about Airport Ticket Sale System.You can use it as an example.
标签: Airport program several System
上传时间: 2015-06-14
上传用户:skhlm
a non-sharing smart pointer class That can be used with STL containers such as std::map, vector, list, set, and deque. The smart pointer has an assignment operator and greater than operator That call the target object s operator.
标签: non-sharing containers pointer vector
上传时间: 2015-06-15
上传用户:Late_Li
青蛙過河~ 就是青蛙過馬路 過馬路很危險請小心... That s a
标签: That
上传时间: 2015-06-17
上传用户:gyq
I know we can t forget the past you can t forget love and pride because of That,it s kill in my inside
上传时间: 2015-06-19
上传用户:stvnash