- 博客(11)
- 资源 (3)
- 收藏
- 关注
原创 uva 10042 smith numbers
Problem D: Smith Numbers Background While skimming his phone directory in 1982, Albert Wilansky, a mathematician of Lehigh University , noticed that the telephone number of his broth
2012-01-19 17:37:56 479
原创 uva 10168 summation of four primes
Problem ASummation of Four PrimesInput: standard inputOutput: standard outputTime Limit: 4 seconds Euler proved in one of his classic theorems that prime numbers are infinite in number. Bu
2012-01-19 16:42:25 524
原创 uva 10139 factovisors
Problem D: FactovisorsThe factorial function, n! is defined thus for n a non-negative integer: 0! = 1 n! = n * (n-1)! (n > 0)We say that a divides b if there exists an integer k such tha
2012-01-19 13:00:55 592
原创 uva 10049 self describing sequence
Problem C: Selfdescribing Sequence Solomon Golomb's selfdescribing sequence is the only nondecreasing sequence of positive integers with the property that it contains exactly f(k)
2012-01-18 21:47:06 715
原创 uva 10254 the priest mathematician
Problem IThe Priest MathematicianInput: standard inputOutput: standard outputTime Limit: 10 seconds The ancient folklore behind the "Towers of Hanoi" puzzle invented by E. Lucas in 1883 is
2012-01-18 16:17:52 463
原创 uva 10247 complete tree labeling
Problem BComplete Tree Labeling!Input: standard inputOutput: standard outputTime Limit: 45 secondsMemory Limit: 32 MB A complete k-ary tree is a k-ary tree in which all leaves have same
2012-01-18 11:20:18 434
原创 uva 10157 expressions
Problem A: EXPRESSIONS Let X be the set of correctly built parenthesis expressions. The elements of X are strings consisting only of the characters �(� and �)�. The set X is defined as follo
2012-01-17 20:11:02 679
原创 uva 107 the cat in the hat
The Cat in the Hat Background(An homage to Theodore Seuss Geisel)The Cat in the Hat is a nasty creature,But the striped hat he is wearing has a rather nifty feature.With one flic
2012-01-13 15:05:02 1249
原创 uva 439 knight moves
BFS Knight Moves A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves that visits each
2012-01-10 16:24:04 1034
原创 uva 294 divisors
Divisors Mathematicians love all sorts of odd properties of numbers. For instance, they consider 945 to be an interesting number, since it is the first odd number for which the sum of its
2012-01-09 23:57:46 984
原创 uva 568 just the facts
Just the Facts The expression N!, read as ``N factorial," denotes the product of the first N positive integers, where N is nonnegative. So, for example,NN!01
2012-01-09 18:34:04 799
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人