05 2012 档案
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KBA large field has a dog and a gopher. The dog wants to eat the gopher, while the gopher wants to run to safety through one of several gopher holes dug in the surface of the field. Neither the dog nor the gopher is a math major; however, neither is entirely
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when r...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Zombies love to eat brains. Yum. Input The first line contains a single integer n indicating the number of data sets. The following n lines each...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Bill and Ted are taking a road trip. But the odometer in their car is broken, so they don't know how many miles they have driven. Fortunately, Bill...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the e...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most pop...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. B...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Children are taught to add multi-digit numbers from right-to-left one digit at a time. Many find the "carry" operation - in which a 1 is carried fr...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB A boolean matrix has the parity property when each row and each column has an even sum, i.e. contains an even number of bits which are set. Here's a ...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB In 1742, Christian Goldbach, a German amateur mathematician, sent a letter to Leonhard Euler in which he made the following conjecture: Every even n...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2) Input Input consists of a sequence of lines, each...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Statement of the Problem We say that a number is a palindrom if it is the sane when read from left to right or from right to left. For example, the...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB A common typing error is to place the hands on the keyboard one row to the right of the correct position. So "Q" is typed as "W" and "J" is typed...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB A Fibonacci sequence is calculated by adding the previous two members of the sequence, with the first two members being both 1. f(1) = 1, f(2) = 1, ...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on all the values 1 t...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Soundex coding groups together words that appear to sound alike based on their spelling. For example, "can" and "khawn", "con" and "gone" would be eq...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Most bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attached to one of the spokes on ...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Ms. Terry is a pre-school art teacher who likes to have her students work with clay. One of her assignments is to form a lump of clay into a block an...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB When a number is expressed in decimal, the kth digit represents a multiple of 10 k. (Digits are numbered from right to left, where the least signific...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For ...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Your chemistry lab instructor is a very enthusiastic graduate student who clearly has forgotten what their undergraduate Chemistry 101 lab experience...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB As part of an arithmetic competency program, your students will be given randomly generated lists of from 2 to 15 unique positive integers and asked ...
阅读全文