
好好学习算法
孤雲独去闲
这个作者很懒,什么都没留下…
展开
-
USACO----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 follower...原创 2018-03-19 16:31:49 · 202 阅读 · 0 评论 -
USACO----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 spen...原创 2018-03-19 17:33:14 · 299 阅读 · 0 评论 -
USACO----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 cereal a...原创 2018-03-19 16:48:53 · 299 阅读 · 0 评论 -
USACO----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 <=...原创 2018-03-19 16:46:41 · 262 阅读 · 0 评论 -
USACO----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, th...原创 2018-03-19 16:45:06 · 257 阅读 · 0 评论 -
USACO----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 bee...原创 2018-03-19 16:43:24 · 244 阅读 · 0 评论 -
USACO----Milking Cows
Three 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 time 1000. The second...原创 2018-03-19 16:41:38 · 669 阅读 · 0 评论 -
USACO----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 compute...原创 2018-03-19 16:39:42 · 247 阅读 · 0 评论 -
USACO----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 some or all of the other friends (although some m...原创 2018-03-19 16:38:12 · 353 阅读 · 0 评论 -
USACO----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.Knowing ...原创 2018-04-09 21:03:00 · 291 阅读 · 0 评论