ACM試題Problem K:Ones Description given any integer 0 <= n <= 10000 not divisible by 2 or 5, some multiple of n is a number which in decimal notation is a sequence of 1 s. How many digits are in the smallest such a multiple of n?
標簽: Description divisible Problem integer
上傳時間: 2015-08-23
上傳用戶:zhenyushaw
Reducer: given a dataset and a file containing a reduct, this program outputs a new dataset containing only the attributes appearing in the reduct file.
標簽: dataset containing containi Reducer
上傳時間: 2014-01-25
上傳用戶:牛津鞋
% binomial.m by David Terr, Raytheon, 5-11-04, from mathworks.com % given nonnegative integers n and m with m<=n, compute the % binomial coefficient n choose m.
標簽: nonnegative mathworks binomial Raytheon
上傳時間: 2015-08-27
上傳用戶:mhp0114
Find a classification error for a given decision surface D and a given set of patterns and targets
標簽: given classification and decision
上傳時間: 2013-12-18
上傳用戶:xinzhch
The project Adventure is a simple text-based adventure game. The game, as given, involves the hero trying to find his way from a deep dark forest to home and his true love. There s very little else the player can do apart from moving from place to place. It s not really very interesting. This project can be of use beyond the given, rather boring forest adventure though. You can use it as a basis for developing your own adventure game with different, more interesting commands, areas, items, people and so on. The package ope.adventure contains classes to describe the game world.
標簽: game text-based The Adventure
上傳時間: 2014-01-15
上傳用戶:cursor
Problem Statement You are given a string input. You are to find the longest substring of input such that the reversal of the substring is also a substring of input. In case of a tie, return the string that occurs earliest in input. Definition Class: ReverseSubstring Method: findReversed Parameters: string Returns: string Method signature: string findReversed(string input) (be sure your method is public) Notes The substring and its reversal may overlap partially or completely. The entire original string is itself a valid substring (see example 4). Constraints input will contain between 1 and 50 characters, inclusive. Each character of input will be an uppercase letter ( A - Z ). Examples 0) "XBCDEFYWFEDCBZ" Returns: "BCDEF" We see that the reverse of BCDEF is FEDCB, which appears later in the string. 1)
上傳時間: 2015-09-21
上傳用戶:sunjet
This code converts a Galois Field array created usin GF(2^m) for a given primitive polynomial into a decimal array that can be used within typical .m file coding.
標簽: polynomial primitive converts created
上傳時間: 2015-09-26
上傳用戶:wang5829
Distribution generator Here is a simple generator which can build some distributions with given properties. Distributions generator (compile with -lm) Typical use might be: ./distributions -u -m 1 -M 10 -n 100 -s 500 Generates a distribution of 100 uniform random numbers between 1 and 10, such that the sum of numbers is 500. ./distributions -p -2.2 -m 1 -M 100 -n 200 -s 500 Idem with 200 numbers between 1 and 100 following a power law with exponent -
標簽: generator distributions Distribution simple
上傳時間: 2014-01-27
上傳用戶:sammi
HDOJ ACM input:The input consists of T test cases. The number of test cases ) (T is given in the first line of the input. Each test case begins with a line containing an integer N , 1<=N<=200 , that represents the number of tables to move. Each of the following N lines contains two positive integers s and t, representing that a table is to move from room number s to room number t (each room number appears at most once in the N lines). From the N+3-rd line, the remaining test cases are listed in the same manner as above.
上傳時間: 2015-10-18
上傳用戶:三人用菜
given signal-to-noise ratio and bit error rate performance curve is a good beginner s reference program.
標簽: signal-to-noise performance reference beginner
上傳時間: 2014-01-11
上傳用戶:zhaiyanzhong