UVa
文章平均质量分 82
Invalid_Pointer
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UVa 673 - Parentheses Balance
Parentheses Balance You are given a string consisting of parentheses () and []. A string of this type is said to be correct: (a)if it is the empty string(b)if A and B are correct, AB原创 2013-02-21 16:31:01 · 321 阅读 · 0 评论 -
UVa10815 - Andy's First Dictionary
Problem B: Andy's First Dictionary Time limit: 3 seconds Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of wo原创 2013-02-10 14:51:37 · 453 阅读 · 0 评论 -
UVa 10878 - Decode the tape
Problem A Decode the tape Time Limit: 1 second "Machines take me by surprise with great frequency." Alan Turing Your boss has just unearthed a roll of old computer tapes. The原创 2013-02-10 14:53:00 · 423 阅读 · 0 评论 -
UVa 123 - Searching Quickly
Searching Quickly Background Searching and sorting are part of the theory and practice of computer science. For example, binary search provides a good example of an easy-to-understa原创 2013-02-11 00:04:10 · 441 阅读 · 0 评论 -
UVa 127 - "Accordian" Patience
``Accordian'' Patience You are to simulate the playing of games of ``Accordian'' patience, the rules for which are as follows: Deal cards one by one in a row from left to right, not overl原创 2013-02-18 14:38:06 · 375 阅读 · 0 评论 -
UVa 101 - The Blocks Problem
The Blocks Problem Background Many areas of Computer Science use simple, abstract domains for both analytical and empirical studies. For example, an early AI study of planning and ro原创 2013-02-18 21:02:10 · 515 阅读 · 0 评论 -
UVa 133 - The Dole Queue
The Dole Queue In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Every day all dole applican原创 2013-02-19 17:57:15 · 450 阅读 · 0 评论 -
UVa 548 - Tree
Tree You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary tree to any leaf. The value of a path is th原创 2013-03-03 15:22:05 · 370 阅读 · 0 评论 -
UVa 10152 - ShellSort
Problem D: ShellSort He made each turtle stand on another one's back And he piled them all up in a nine-turtle stack. And then Yertle climbed up. He sat down on the pile. What a wonderful view! H原创 2013-02-20 17:25:02 · 406 阅读 · 0 评论 -
UVa 10115 - Automatic Editing
Problem E: Automatic Editing Source file: autoedit.{c, cpp,java, pas} Input file: autoedit.in Output file: autoedit.out Text-processing tools like awk and sed allow you原创 2013-02-10 14:49:30 · 450 阅读 · 0 评论 -
UVa 540 - Team Queue
Team Queue Queues and Priority Queues are data structures which are known to most computer scientists. TheTeam Queue, however, is not so well known, though it occurs often in everyday lif原创 2013-02-24 01:12:53 · 448 阅读 · 0 评论 -
UVa 442 - Matrix Chain Multiplication
Matrix Chain Multiplication Suppose you have to evaluate an expression like A*B*C*D*E where A,B,C,D and E are matrices. Since matrix multiplication is associative, the order in which mult原创 2013-02-22 22:52:22 · 435 阅读 · 0 评论 -
UVa 11111 - Generalized Matrioshkas
Problem B - Generalized Matrioshkas Vladimir worked for years making matrioshkas, those nesting dolls that certainly represent truly Russian craft. A matrioshka is a doll that may be op原创 2013-02-23 17:26:03 · 405 阅读 · 0 评论 -
UVa 297 - Quadtrees
Quadtrees A quadtree is a representation format used to encode images. The fundamental idea behind the quadtree is that any image can be split into four quadrants. Each quadrant may again be原创 2013-03-08 15:07:41 · 669 阅读 · 0 评论 -
UVa 699 - The Falling Leaves
The Falling Leaves Each year, fall in the North Central region is accompanied by the brilliant colors of the leaves on the trees, followed quickly by the falling leaves accumulating under the tre原创 2013-03-10 15:35:05 · 753 阅读 · 0 评论 -
UVa 112 - Tree Summing
Tree Summing Background LISP was one of the earliest high-level programming languages and, with FORTRAN, is one of the oldest languages currently being used. Lists, which are the原创 2013-03-02 21:32:59 · 422 阅读 · 0 评论 -
UVa 572 - Oil Deposits
Oil Deposits The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates原创 2013-03-22 15:28:28 · 556 阅读 · 0 评论 -
UVa 10494 - If We Were a Child Again
Problem C If We Were a Child Again Input: standard input Output: standard output Time Limit: 7 seconds “Oooooooooooooooh! If I could do the easy mathematics like my school days!! I can原创 2013-02-05 21:41:18 · 571 阅读 · 0 评论 -
UVa 156 - Ananagrams
Ananagrams Most crossword puzzle fans are used to anagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP, POTS and POST. Some words however do not h原创 2013-02-08 22:31:34 · 366 阅读 · 0 评论 -
UVa 340 - Master-Mind Hints
Master-Mind Hints MasterMind is a game for two players. One of them, Designer, selects a secret code. The other, Breaker, tries to break it. A code is no more than a row of colored dots.原创 2013-02-06 22:57:50 · 469 阅读 · 0 评论 -
UVa 755 - 487--3279
487-3279 Businesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the Un原创 2013-02-09 23:03:23 · 438 阅读 · 0 评论 -
UVa 400 - Unix ls
Unix ls The computer company you work for is introducing a brand new computer line and is developing a new Unix-like operating system to be introduced along with the new computer. Your原创 2013-02-09 20:13:55 · 575 阅读 · 0 评论 -
UVa 299 - Train Swapping
Train Swapping At an old railway station, you may still encounter one of the last remaining ``train swappers''. A train swapper is an employee of the railroad, whose sole job it is to rearran原创 2013-02-07 21:13:00 · 458 阅读 · 0 评论 -
UVa 10474 - Where is the Marble?
Where is the Marble? Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would place the marbles one after anothe原创 2013-02-07 16:32:20 · 599 阅读 · 0 评论 -
UVa 120 - Stacks of Flapjacks
Stacks of Flapjacks Background Stacks and Queues are often considered the bread and butter of data structures and find use in architecture, parsing, operating systems, and discrete eve原创 2013-02-08 16:07:10 · 321 阅读 · 0 评论 -
UVa 644 - Immediate Decodability
Immediate Decodability An encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this problem that原创 2013-02-07 21:19:11 · 346 阅读 · 0 评论 -
UVa 152 - Tree's a Crowd
Tree's a Crowd Dr William Larch, noted plant psychologist and inventor of the phrase ``Think like a tree--Think Fig'' has invented a new classification system for trees. This is a complicated原创 2013-02-07 21:16:02 · 310 阅读 · 0 评论 -
UVa 10106 - Product
Product The Problem The problem is to multiply two integers X, Y. (0250) The Input The input will consist of a set of pairs of lines. Each line in pair contains one multiplye原创 2013-02-09 23:44:15 · 346 阅读 · 0 评论 -
UVa 748 - Exponentiation
Exponentiation Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience fo原创 2013-02-09 23:39:59 · 373 阅读 · 0 评论 -
UVa 10420 - List of Conquests
Problem B List of Conquests Input:standard input Output: standard output Time Limit: 2 seconds In Act I, Leporello is telling Donna Elvira about his master's long list of conquests: ``This is原创 2013-02-06 23:46:28 · 375 阅读 · 0 评论 -
UVa 465 - Overflow
Overflow Write a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the result of the expression is too large to be represented原创 2013-02-06 19:53:09 · 294 阅读 · 0 评论 -
UVa 424 - Integer Inquiry
Integer Inquiry One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums of th原创 2013-02-05 23:47:23 · 338 阅读 · 0 评论 -
UVa 409 - Excuses, Excuses!
Excuses, Excuses! Judge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to reduce the amount of time required listening to原创 2013-02-05 19:40:15 · 461 阅读 · 0 评论
分享