UVA
文章平均质量分 83
coco430
这个作者很懒,什么都没留下…
展开
-
UVA 567 - Risk(最短路)
DescriptionRisk is a board game in which several opposing players attempt to conquer the world. The gameboard consists of a world map broken up into hypothetical countries. During a player's turn,原创 2013-09-21 16:45:20 · 640 阅读 · 0 评论 -
UVA 216 - Getting in Line
Getting in Line Computer networking requires that the computers in the network be linked.This problem considers a ``linear" network in which the computers are chained together原创 2013-08-09 14:54:32 · 556 阅读 · 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 ano原创 2013-08-09 14:47:44 · 420 阅读 · 0 评论 -
UVA 10790 - How Many Points of Intersection(数学)
How Many Points of Intersection? We have two rows. There are a dots on the top row and b dots on the bottom row. We draw line segments connecting every dot on the top row with every do转载 2013-07-27 18:04:47 · 498 阅读 · 0 评论 -
UVA 11044 - Searching for Nessy(数学)
Searching for Nessy The Loch Ness Monsteris a mysterious and unidentified animal said to inhabit Loch Ness, a large deep freshwater loch near the city of Inverness in northern Scotland.原创 2013-07-27 18:16:26 · 598 阅读 · 0 评论 -
UVA 10115 - Automatic Editing(字符串)
Automatic EditingSource file:autoedit.{c, cpp, java, pas}Input file:autoedit.inOutput file:autoedit.outText-processing tools like awk and sed allow you to aut原创 2013-07-24 10:28:23 · 470 阅读 · 0 评论 -
uva 375 - Inscribed Circles and Isosceles Triangles
Inscribed Circles and Isosceles Triangles Given two real numbersBthe width of the base of an isosceles triangle in inchesHthe altitude of the same isosceles triangle in inches原创 2013-04-22 21:01:47 · 635 阅读 · 1 评论 -
UVA 10499 - The Land of Justice(数学)
The Land of JusticeInput: standard inputOutput: standard outputTime Limit: 4 secondsIn the Land of Justice the selling price of everything is fixed all over the country. Nobody can buy a t原创 2013-07-27 17:16:52 · 437 阅读 · 0 评论 -
UVA 573 - The Snail(数学)
The Snail A snail is at the bottom of a 6-foot well and wants to climb to the top. The snail can climb 3 feet while the sun is up, but slides down 1 foot at night while sleeping. The s原创 2013-07-27 15:27:45 · 514 阅读 · 0 评论 -
UVA 639 - Don't Get Rooked(深搜)
Don't Get Rooked In chess, the rook is a piece that can move any number of squares vertically or horizontally. In this problem we will consider small chess boards (at most 44) that c原创 2013-08-09 14:59:37 · 447 阅读 · 0 评论 -
UVA 539 - The Settlers of Catan(深搜 回溯)
The Settlers of Catan Within Settlers of Catan, the 1995 German game of the year, players attempt to dominate an island by building roads, settlements and cities across its uncharted w原创 2013-08-09 15:05:42 · 565 阅读 · 0 评论 -
UVA 10006 - Carmichael Numbers(快速幂取模)
Carmichael Numbers An important topic nowadays in computer science is cryptography. Some people even think that cryptography is the only important field in computer science, and that lif原创 2013-09-21 17:37:25 · 580 阅读 · 0 评论 -
UVA 10341 - Solve It(二分)
Solve ItInput: standard inputOutput: standard outputTime Limit: 1 secondMemory Limit: 32 MBSolve the equation: p*e-x + q*sin(x) + r*cos(x) + s*tan(x) + t*x2 + u = 0 where 0原创 2013-08-17 01:08:02 · 432 阅读 · 0 评论 -
UVA 10132 - File Fragmentation
File FragmentationThe ProblemYour friend, a biochemistry major, tripped while carrying a tray of computer files through the lab. All of the files fell to the ground and broke. Your friend pi原创 2013-08-11 12:06:28 · 537 阅读 · 0 评论 -
UVA 10905 - Children’s Game
Children’s GameInput: standard inputOutput: standard outputProblemsetter: Md. KamruzzamanThere are lots of number games for children. These games are pretty easy to原创 2013-08-10 16:38:03 · 453 阅读 · 0 评论 -
UVA 10763 - Foreign Exchange(二分查找)
B - Foreign ExchangeTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluDescriptionYour non-profit organization (iCORE - international Confederation of Revolver Enthusi原创 2013-08-10 16:32:17 · 592 阅读 · 0 评论 -
UVA 10344 - 23 Out of 5(回溯)
23 Out of 5Input: standard inputOutput: standard outputTime Limit: 1 secondMemory Limit: 32 MBYour task is to write a program that can decide whether you can find an arithmetic expression co原创 2013-08-09 15:18:32 · 547 阅读 · 0 评论 -
UVA 331 - Mapping the Swaps(回溯)
Mapping the Swaps Sorting an array can be done by swapping certain pairs of adjacent entries in the array. This is the fundamental technique used in the well-known bubble sort. If we l原创 2013-08-09 15:24:47 · 414 阅读 · 0 评论 -
UVA 301 - Transportation
Transportation Ruratania is just entering capitalism and is establishing new enterprising activities in many fields including transport. The transportation company TransRuratania is st原创 2013-08-09 15:14:49 · 519 阅读 · 0 评论 -
UVA 591 - Box of Bricks(数学)
Box of Bricks Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built a wall!'', he tells his old原创 2013-07-27 15:10:45 · 521 阅读 · 0 评论 -
UVA 846 - Steps(数学)
Steps One steps through integer points of the straight line. The length of a step must be nonnegative and can be by one bigger than, equal to, or by one smaller than the length of the原创 2013-07-27 15:39:55 · 525 阅读 · 0 评论 -
UVA 10025 - The ? 1 ? 2 ? ... ? n = k problem(数学)
The ? 1 ? 2 ? ... ? n = k problem The problemGiven the following formula, one can set operators '+' or '-' instead of each '?', in order to obtain a given k? 1 ? 2 ? ... ? n原创 2013-07-25 15:24:31 · 444 阅读 · 0 评论 -
UVA 10361 - Automatic Poetry(字符串)
Automatic PoetryInput: standard inputOutput: standard outputTime Limit: 2 secondsMemory Limit: 32 MB “Oh God”, Lara Croft exclaims, “it’s one of these dumb riddles again!” In Tomb原创 2013-07-24 08:41:57 · 488 阅读 · 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原创 2013-07-24 11:47:24 · 431 阅读 · 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原创 2013-07-24 11:35:10 · 490 阅读 · 0 评论 -
UVA 10815 - Andy's First Dictionary(字符串)
Andy's First DictionaryTime limit: 3 secondsAndy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that原创 2013-07-24 09:52:32 · 523 阅读 · 0 评论 -
uva 10250 - The Other Two Trees
Problem EThe Other Two TreesInput: standard inputOutput: standard outputTime Limit: 2 seconds You have a quadrilateral shaped land whose opposite fences are of equal length. You have four原创 2013-04-22 11:48:46 · 431 阅读 · 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原创 2013-07-24 10:14:36 · 457 阅读 · 0 评论 -
uva 10387 - Billiard
Problem A: BilliardIn a billiard table with horizontal side a inches and vertical side b inches, a ball is launched from the middle of the table. After s > 0 seconds the ball returns to the point原创 2013-04-23 20:44:56 · 583 阅读 · 1 评论 -
UVA 10010 - Where's Waldorf?(字符串)
Where's Waldorf? Given a m by n grid of letters, ( ), and a list of words, find the location in the grid at which the word can be found. A word matches a straight, uninterrupted line o原创 2013-07-24 08:30:23 · 444 阅读 · 0 评论 -
UVA 401 - Palindromes(字符串)
Palindromes A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when原创 2013-07-23 20:06:45 · 449 阅读 · 0 评论 -
UVA 10878 - Decode the tape(字符串)
Decode the tapeTime Limit: 1 second"Machines take me by surprise with great frequency."Alan TuringYour boss has just unearthed a roll of old computer tapes. T原创 2013-07-24 09:40:39 · 510 阅读 · 0 评论 -
UVA 253 - Cube painting(立方体涂色)
Cube painting We have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors. The cube's faces ar原创 2013-07-25 14:59:30 · 1100 阅读 · 0 评论 -
UVA 113 - Power of Cryptography(数学)
Power of Cryptography BackgroundCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers modulo functions of these primes.原创 2013-07-25 14:20:12 · 585 阅读 · 0 评论 -
UVA 621 - Secret Research(数学)
Secret Research At a certain laboratory results of secret research are thoroughly encrypted. A result of a single experiment is stored as an information of its completion:`po原创 2013-07-25 15:04:35 · 600 阅读 · 0 评论 -
UVA 10161 - Ant on a Chessboard(数学)
Ant on a Chessboard Background One day, an ant called Alice came to an M*M chessboard. She wanted to go around all the grids. So she began to walk along the chessboard according to t原创 2013-07-25 14:28:00 · 437 阅读 · 0 评论 -
UVA 10494 - If We Were a Child Again(大数除法和取模)
If We Were a Child AgainInput: standard inputOutput: standard outputTime Limit: 7 seconds “Oooooooooooooooh!If I could do the easy mathematics like my school days!!I can guarante原创 2013-07-24 13:20:45 · 449 阅读 · 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 experi原创 2013-07-24 13:10:45 · 394 阅读 · 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 require原创 2013-07-24 09:34:05 · 500 阅读 · 0 评论 -
UVA 10106 - Product(大数乘法)
Product The ProblemThe problem is to multiply two integers X, Y. (0250)The InputThe input will consist of a set of pairs of lines. Each line in pair contains one multip原创 2013-07-24 11:41:43 · 532 阅读 · 0 评论