摘要: Hat's FibonacciTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3726 Accepted Submission(s): 1252Problem DescriptionA Fibonacci sequence is calculated by adding the previous two members the sequence, with the first two members being both 1.F(1) 阅读全文
posted @ 2012-07-22 09:24 剑不飞 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Fibonacci NumbersTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 993 Accepted Submission(s): 424Problem DescriptionThe Fibonacci sequence is the sequence of numbers such that every element is equal to the sum of the two previous elements, except f 阅读全文
posted @ 2012-07-21 12:04 剑不飞 阅读(307) 评论(0) 推荐(1) 编辑
摘要: Packing RectanglesIOI 95 The six basic layouts of four rectangles Four rectangles are given. Find the smallest enclosing (new) rectangle into which these four may be fitted without overlapping. By smallest rectangle, we mean the one with the smallest area. All four rectangles should have their side. 阅读全文
posted @ 2012-07-20 16:48 剑不飞 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Prime Cryptarithm The following cryptarithm is a multiplication problem that can be solved by substituting digits from a specified set of N digits into the positions marked with *. If the set of prime digits {2,3,5,7} is selected, the cryptarithm is called a PRIME CRYPTARITHM. * * * x * ... 阅读全文
posted @ 2012-07-11 17:46 剑不飞 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Calf FlacIt is said that if you give an infinite number of cows an infinite number of heavy-duty laptops (with very large keys), that they will ultimately produce all the world's great palindromes. Your job will be to detect these bovine beauties.Ignore punctuation, whitespace, numbers, and case 阅读全文
posted @ 2012-07-11 16:04 剑不飞 阅读(232) 评论(0) 推荐(0) 编辑
摘要: Barn RepairIt was a dark and stormy night that ripped the roof and gates off the stalls that hold Farmer John's cows. Happily, many of the cows were on vacation, so the barn was not completely full. The cows spend the night in stalls that are arranged adjacent to each other in a long line. Some 阅读全文
posted @ 2012-07-10 18:47 剑不飞 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Mixing MilkSince milk packaging is such a low margin business, it is important to keep the price of the raw product (milk) as low as possible. Help Merry Milk Makers get the milk they need in the cheapest possible manner.The Merry Milk Makers company has several farmers from which they may buy milk, 阅读全文
posted @ 2012-07-10 17:17 剑不飞 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Name That NumberAmong the large Wisconsin cattle ranchers, it is customary to brand cows with serial numbers to please the Accounting Department. The cow hands don't appreciate the advantage of this filing system, though, and wish to call the members of their herd by a pleasing name rather than 阅读全文
posted @ 2012-07-07 11:19 剑不飞 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Dual Palindromes Mario Cruz (Colombia) & Hugo Rickeboer (Argentina) A number that reads the same from right to left as when read from left to right is called a palindrome. The number 12321 is a palindrome; the number 77778 is not. Of course, palindromes have neither leading nor trailing zeroes, 阅读全文
posted @ 2012-07-05 21:40 剑不飞 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Palindromic Squares Rob Kolstad Palindromes are numbers that read the same forwards as backwards. The number 12321 is a typical palindrome. Given a number base B (2 #include #include #define N 1234 using namespace std; struct A { int star[N]; ... 阅读全文
posted @ 2012-07-04 09:39 剑不飞 阅读(216) 评论(0) 推荐(0) 编辑