
解题报告
文章平均质量分 83
zhuxuan1028
这个作者很懒,什么都没留下…
展开
-
USACO Section1.2 Your Ride is Here 翻译&解题报告
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...原创 2018-06-25 15:03:02 · 293 阅读 · 0 评论 -
USACO 1.4 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-07-05 19:57:55 · 297 阅读 · 0 评论 -
USACO 1.4 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-07-05 19:39:32 · 486 阅读 · 0 评论 -
USACO 1.4 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 s...原创 2018-07-12 00:39:52 · 523 阅读 · 0 评论 -
USACO 1.4 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 poi...原创 2018-07-12 00:23:56 · 645 阅读 · 0 评论 -
PTA 数据结构与算法题目集(中文)6-9 二叉树的遍历
6-9 二叉树的遍历(25 分)本题要求给定二叉树的4种遍历。函数接口定义:void InorderTraversal( BinTree BT );void PreorderTraversal( BinTree BT );void PostorderTraversal( BinTree BT );void LevelorderTraversal( BinTree BT );其中BinTre...原创 2018-07-01 23:56:26 · 630 阅读 · 1 评论 -
PTA 数据结构与算法题目集(中文)6-8 求二叉树高度
6-8 求二叉树高度(20 分)本题要求给定二叉树的高度。函数接口定义:int GetHeight( BinTree BT );其中BinTree结构定义如下:typedef struct TNode *Position;typedef Position BinTree;struct TNode{ ElementType Data; BinTree Left; Bin...原创 2018-07-01 23:59:07 · 678 阅读 · 0 评论 -
Crafting Winning Solutions 制作获奖解题方法
Crafting Winning SolutionsA good way to get a competitive edge is to write down a game plan for what you're going to do in a contest round. This will help you script out your actions, in terms of what...翻译 2018-07-01 19:36:35 · 392 阅读 · 0 评论 -
USACO 1.3 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-07-01 19:26:39 · 405 阅读 · 0 评论 -
USACO Section1.2 Greedy Gift Givers 翻译&解题报告
Task 'gift1': 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 some or all of th...原创 2018-06-26 12:06:35 · 643 阅读 · 0 评论 -
USACO 1.3 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-06-30 19:19:09 · 304 阅读 · 0 评论 -
USACO 1.3 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-06-30 19:03:37 · 362 阅读 · 0 评论 -
USACO 1. 2 Friday the Thirteenth 翻译&amp;解题报告
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-06-30 18:55:46 · 327 阅读 · 0 评论 -
USACO 1.4 Prime Cryptarithm 翻译&amp;amp;解题报告
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,5,7} ...原创 2018-07-05 20:05:07 · 262 阅读 · 0 评论