数论
滑头鬼之亨
Frankiller
展开
-
uva 579 - ClockHands
ClockHands The medieval interest in mechanical contrivances is well illustrated by the development of the mechanical clock, the oldest of which is driven by weights and controlled by a verge原创 2012-07-07 11:52:23 · 967 阅读 · 0 评论 -
uva 350 - Pseudo-Random Numbers
Pseudo-Random NumbersComputers normally cannot generate really random numbers, but frequently are used to generate sequences of pseudo-random numbers. These are generated by some algor原创 2012-07-02 20:16:28 · 820 阅读 · 0 评论 -
uva 408 - Uniform Generator
Uniform GeneratorComputer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the formwhere `` " is the modulus operator原创 2012-07-02 19:37:23 · 871 阅读 · 0 评论 -
uva 568 - Just the Facts
Just the Facts The expression N!, read as ``N factorial," denotes the product of the firstN positive integers, whereN is nonnegative. So, for example,NN!011原创 2012-06-30 21:06:25 · 679 阅读 · 0 评论 -
uva 550 - Multiplying by Rotation
Multiplying by Rotation Warning: Not all numbers in this problem are decimal numbers!Multiplication of natural numbers in general is a cumbersome operation. In some cases however原创 2012-06-30 20:08:22 · 872 阅读 · 0 评论 -
uva 10110 - Light, more light
Light, more lightThe ProblemThere is man named "mabu" for switching on-off light in our University. He switches on-off the lights in a corridor. Every bulb has its own toggle switch. That原创 2012-06-30 18:53:18 · 1000 阅读 · 0 评论 -
uva 575 - Skew Binary
Skew Binary When a number is expressed in decimal, the k-th digit represents a multiple of 10k. (Digits are numbered from right to left, where the least significant digit is number 0.) For example,原创 2012-06-30 11:29:45 · 708 阅读 · 0 评论 -
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原创 2012-07-08 16:56:48 · 2572 阅读 · 1 评论 -
uva 10061 - How many zero's and how many digits ?
Problem GHow many zeros and how many digits?Input: standard inputOutput: standard output Given a decimal integer number you will have to find out how many trailing zeros will be there in i原创 2012-07-09 11:03:50 · 1554 阅读 · 0 评论 -
uva 10879 - Code Refactoring
Problem BCode RefactoringTime Limit: 2 seconds "Harry, my dream is a code waiting to bebroken. Break the code, solve the crime." Agent Cooper Several algorithms in mode原创 2012-07-06 20:53:56 · 672 阅读 · 0 评论 -
uva 10392 - Factoring Large Numbers
Problem F: Factoring Large NumbersOne of the central ideas behind much cryptography is that factoring large numbers is computationally intensive. In this context one might use a 100 digit number t原创 2012-07-02 20:44:10 · 783 阅读 · 0 评论