- 博客(20)
- 收藏
- 关注
原创 USCAO-Section 1.5 Number Triangles
原题: Consider the number triangle shown below. Write a program that calculates the highest sum of numbers that can be passed on a route that starts at the top and ends somewhere on the base. Each step
2017-06-04 19:13:21 315
原创 USCAO-Section 1.4 Mother's Milk
原题: Mother’s MilkFarmer John has three milking buckets of capacity A, B, and C liters. Each of the numbers A, B, and C is an integer from 1 through 20, inclusive. Initially, buckets A and B are empty
2017-06-04 19:08:33 287
原创 USCAO-Section 1.4 Arithmetic Progressions
原题: An arithmetic progression is a sequence of the form a, a+b, a+2b, …, a+nb where n=0,1,2,3,… . For this problem, a is a non-negative integer and b is a positive integer.Write a program that finds
2017-06-04 19:01:24 239
原创 USCAO-Section 1.3 Wormholes
原题: Farmer John’s hobby of conducting high-energy physics experiments on weekends has backfired, causing N wormholes (2 <= N <= 12, N even) to materialize on his farm, each located at a distinct point
2017-06-04 18:53:22 290
原创 USCAO-Section 1.3 Ski Course Design
原题: Farmer John has N hills on his farm (1 <= N <= 1,000), each with an integer elevation in the range 0 .. 100. In the winter, since there is abundant snow on these hills, FJ routinely operates a ski
2017-06-04 18:34:39 253
原创 USCAO-Section 1.3 Combination Lock
原题: Farmer John’s cows keep escaping from his farm and causing mischief. To try and prevent them from leaving, he purchases a fancy combination lock to keep his cows from opening the pasture gate.Know
2017-06-04 18:26:06 334
原创 USCAO-Section 1.3 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,
2017-06-04 18:16:30 295
原创 USCAO-Section 1.3 Barn Repair
原题: It 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
2017-06-04 18:13:03 326
原创 USCAO-Section 1.3 Mixing Milk
原题: The Merry Milk Makers company buys milk from farmers, packages it into attractive 1- and 2-Unit bottles, and then sells that milk to grocery stores so we can each start our day with delicious cere
2017-06-04 18:01:49 229
原创 USCAO Section 1.2 Dual Palindromes
原题: Dual Palindromes 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, pali
2017-05-30 13:14:15 265
原创 USCAO Section 1.2 Palindromic Squares
原题: Palindromes are numbers that read the same forwards as backwards. The number 12321 is a typical palindrome.Given a number base B (2 <= B <= 20 base 10), print all the integers N (1 <= N <= 300 bas
2017-05-30 12:58:46 252
原创 USCAO-Section 1.2 Name That Number
原题: Among 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
2017-05-30 12:11:19 253
原创 USCAO-Section1.2 Transformations
原题: A square pattern of size N x N (1 <= N <= 10) black and white square tiles is transformed into another square pattern. Write a program that will recognize the minimum transformation that has been
2017-05-29 15:39:13 231
原创 USCAO-Section1.1 Broken Necklace(DP版)
USCAO-Section1.1 Broken Necklace(DP版)
2017-05-26 21:45:18 443
原创 USCAO-Section1.1 Broken Necklace(暴力枚举版dp版待更新)
USCAO-Section1.1 Broken Necklace(暴力枚举版dp版待更新)
2017-05-26 19:21:52 345
原创 USCAO-Section1.1 Friday the Thirteenth
原题: Is Friday the 13th really an unusual event?That is, does the 13th of the month land on a Friday less often than on any other day of the week? To answer this question, write a program that will com
2017-05-26 18:25:09 301
原创 USCAO-Section1.1 Greedy Gift Givers
原题: A group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchange gifts of money. Each of these friends might or might not give some money to any or all of the other friends. Likewise, ea
2017-05-26 16:37:14 15433
原创 USCAO-Section1.1 Your Ride Is Here
原题: It is a well-known fact that behind every good comet is a UFO. These UFOs often come to collect loyal supporters from here on Earth. Unfortunately, they only have room to pick up one group of foll
2017-05-25 22:56:51 495
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人