
ACM-USACO
文章平均质量分 87
J_Sure
唯苦修深思方能顿悟
展开
-
USACO-cha1-sec1.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 fri原创 2014-04-06 00:21:25 · 1105 阅读 · 0 评论 -
USACO-cha1-sec1.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原创 2014-04-06 16:06:14 · 1002 阅读 · 0 评论 -
【哈希】USACO-cha2-sec2.2 Preface Numbering
Preface NumberingA certain book's prefaces are numbered in upper case Roman numerals. Traditional Roman numeral values use a single letter to represent a certain subset of decimal numbers. Here is原创 2014-11-23 20:42:31 · 990 阅读 · 0 评论 -
【DFS|暴力】USACO-cha1-sec1.3 Wormholes
WormholesFarmer 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 disti原创 2014-11-22 21:24:37 · 1243 阅读 · 0 评论 -
USACO-cha2-sec2.1 The Castle
The CastleIOI'94 - Day 1In a stroke of luck almost beyond imagination, Farmer John was sent a ticket to the Irish Sweepstakes (really a lottery) for his birthday. This ticket turned out to have on原创 2014-07-15 13:43:14 · 1158 阅读 · 0 评论 -
USACO-cha2-sec2.2 Subset Sums
Subset SumsJRMFor many sets of consecutive integers from 1 through N (1 For example, if N=3, one can partition the set {1, 2, 3} in one way sothat the sums of both subsets are identical:{3}原创 2014-07-30 12:47:17 · 893 阅读 · 0 评论 -
USACO-cha2-sec2.1 Healthy Holsteins
Healthy HolsteinsBurch & KolstadFarmer John prides himself on having the healthiest dairy cowsin the world. He knows the vitamin content for one scoop of eachfeed type and the minimum daily vitami原创 2014-07-28 00:32:21 · 1052 阅读 · 0 评论 -
USACO-cha1-sec1.5 Superprime Rib
Superprime RibButchering Farmer John's cows always yields the best prime rib. You can tell prime ribs by looking at the digits lovingly stamped across them, one by one, by FJ and the USDA. Farmer原创 2014-07-07 22:18:41 · 1009 阅读 · 0 评论 -
USACO-cha1-sec1.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 prime原创 2014-07-07 14:50:41 · 1090 阅读 · 0 评论 -
USACO-cha1-sec1.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.原创 2014-07-04 19:03:34 · 1027 阅读 · 0 评论 -
USACO-cha1-sec1.5 Checker Challenge
Checker ChallengeExamine the 6x6 checkerboard below and note that the six checkers are arranged on the board so that one and only one is placed in each row and each column, and there is never more原创 2014-07-05 15:24:37 · 921 阅读 · 0 评论 -
USACO-cha1-sec1.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原创 2014-07-04 19:33:04 · 1115 阅读 · 0 评论 -
USACO-cha1-sec1.4 Packing Rectangles
Packing RectanglesIOI 95 The six basic layouts of four rectanglesFour rectangles are given. Find the smallest enclosing (new) rectangle into which these four may be fitted without overlapping.原创 2014-07-03 14:06:04 · 1236 阅读 · 0 评论 -
USACO-cha1-sec1.4 The Clocks
The ClocksIOI'94 - Day 2Consider nine clocks arranged in a 3x3 array thusly:|-------| |-------| |-------| | | | | | | | |---O | |---O | | O |原创 2014-07-03 22:40:05 · 1141 阅读 · 3 评论 -
USACO-cha1-sec1.3(AOJ-133) Calf Flac
Calf FlacTime Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBJudge By CaseDescriptionIt is said that if you give an infinite number of cows an infinite number ofheavy-dut原创 2014-03-19 16:55:39 · 1086 阅读 · 0 评论 -
【乱搞】USACO-cha1-sec1.3 Preface Numbering
Combination LockFarmer 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原创 2014-12-26 11:29:48 · 1093 阅读 · 0 评论