USACO小试牛刀
文章平均质量分 87
才子年华
码农
展开
-
USACO 1.1 Your ride is here 解题报告
Your Ride Is HereIt 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原创 2013-07-19 11:30:11 · 551 阅读 · 0 评论 -
USACO1.1.2 Greedy Gift Givers
Greedy Gift GiversA group of NP (2 ≤ NP ≤ 10) uniquely named friends hasdecided to exchange gifts of money. Each of these friends might ormight not give some money to any or all of the other frien原创 2013-07-22 11:16:50 · 553 阅读 · 0 评论 -
USACO1.1.4 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原创 2013-07-22 11:37:51 · 705 阅读 · 0 评论 -
USACO 1.2.4 Palindromic Squares 回文平方数
Palindromic SquaresRob KolstadPalindromes 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 th原创 2013-07-22 19:48:31 · 1161 阅读 · 0 评论 -
USACO 1.2.2 Transformations 方块转换
TransformationsA square pattern of size N x N (1 <= N <= 10) black and whitesquare tiles is transformed into another square pattern. Write a programthat will recognize the minimum transformation t原创 2013-07-22 19:26:16 · 1239 阅读 · 0 评论 -
USACO 1.2.3 Name That Number 命名那个数字
Name That NumberAmong the large Wisconsin cattle ranchers, it is customary to brandcows with serial numbers to please the Accounting Department. The cowhands don't appreciate the advantage of this原创 2013-07-22 19:39:38 · 859 阅读 · 0 评论 -
USACO 1.2.5 Dual Palindromes 双重回文数
Dual PalindromesMario Cruz (Colombia) & Hugo Rickeboer (Argentina)A number that reads the same from right to left as when read fromleft to right is called a palindrome. The number 12321 is a pal原创 2013-07-22 20:00:43 · 886 阅读 · 0 评论 -
USACO1.1.3 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 thanon any other day of the week? To answer this question, write a原创 2013-07-22 11:27:36 · 532 阅读 · 0 评论 -
USACO1.2.1 Milking Cows
Milking CowsThree farmers rise at 5 am each morning and head for the barnto milk three cows. The first farmer begins milking his cow at time300 (measured in seconds after 5 am) and ends at time 10原创 2013-07-22 11:56:21 · 535 阅读 · 0 评论