
USACO
文章平均质量分 84
ArcherCheng
这个作者很懒,什么都没留下…
展开
-
USACO 1.4 Arithmetic Progressions
Arithmetic ProgressionsAn 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.原创 2015-09-10 00:41:58 · 258 阅读 · 0 评论 -
USACO 1.3 Wormholes
WormholesFarmer John's hobby of conducting high-energy physics experiments on weekends has backfired, causing N wormholes (2 According to his calculations, Farmer John knows that his wormholes原创 2015-09-08 01:03:33 · 431 阅读 · 0 评论 -
USACO 1.5 Number Triangles
Number TrianglesConsider 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 th原创 2015-09-11 14:46:28 · 387 阅读 · 0 评论 -
USACO 1.1 Friday the Thirteenth
Friday the ThirteenthIs 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, wr原创 2015-08-28 18:47:37 · 258 阅读 · 0 评论 -
USACO 1.1 Milking Cows
Milking CowsThree farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins milking his cow at time 300 (measured in seconds after 5 am) and ends at tim原创 2015-08-29 06:16:26 · 287 阅读 · 0 评论 -
USACO 1.2 Dual Palindromes
Dual PalindromesMario 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 pali原创 2015-09-03 14:45:11 · 281 阅读 · 0 评论 -
USACO 1.3 Barn Repair
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 f原创 2015-09-04 00:25:23 · 245 阅读 · 0 评论 -
USACO 1.3 Prime Cryptarithm
Prime CryptarithmThe 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原创 2015-09-04 16:05:29 · 308 阅读 · 0 评论 -
USACO 1.1 Broken Necklace
Broken NecklaceYou have a necklace of N red, white, or blue beads (3 1 2 1 2 r b b r b r r b r原创 2015-08-29 01:30:17 · 292 阅读 · 0 评论 -
USACO 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原创 2015-09-10 01:03:27 · 339 阅读 · 0 评论 -
USACO 1.1 Your Ride Is Here
今天开切usaco题解:简单的字符串处理/*ID: cxq_xia1PROG: rideLANG: C++*/#include #include #include using namespace std;int main(){ freopen("ride.in","r",stdin); freopen("ride.out","w",stdou原创 2015-08-28 13:07:59 · 417 阅读 · 0 评论 -
USACO 1.1 Greedy Gift Givers
Greedy Gift GiversA 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 f原创 2015-08-28 16:11:56 · 307 阅读 · 0 评论 -
USACO 1.2 Transformations
TransformationsA 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 transformati原创 2015-08-29 08:45:56 · 266 阅读 · 0 评论 -
USACO 1.2 Name That Number
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原创 2015-08-29 14:38:46 · 280 阅读 · 0 评论 -
USACO 1.3 Mixing Milk
Mixing MilkThe 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 d原创 2015-09-03 21:22:27 · 356 阅读 · 0 评论 -
USACO 1.3 Ski Course Design
Ski Course DesignFarmer John has N hills on his farm (1 Unfortunately, FJ has just found out about a new tax that will be assessed next year on farms used as ski training camps. Upon careful r原创 2015-09-09 01:04:25 · 301 阅读 · 0 评论 -
USACO 1.5 Prime Palindromes
Prime PalindromesThe number 151 is a prime palindrome because it is both a prime number and a palindrome (it is the same number when read forward as backward). Write a program that finds all pri原创 2015-10-15 22:47:01 · 387 阅读 · 0 评论