UVa
文章平均质量分 87
吕-小-布
挖掘机专业哪家强?中国山东找蓝翔!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Problem 044——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 cre原创 2015-02-14 21:47:59 · 682 阅读 · 0 评论 -
Problem 019 —— UVa 1587 - Box
Ivan works at a factory that produces heavy machinery. He hasa simple job -- he knocks up wooden boxes of different sizesto pack machinery for delivery to the customers. Each boxis a rectangular paral原创 2014-12-10 16:09:35 · 575 阅读 · 0 评论 -
Problem 034——UVa 136 - Ugly Numbers
Ugly Numbers Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, ...shows the first 11 ugly numbers. By convention,原创 2015-02-02 10:47:49 · 653 阅读 · 0 评论 -
Problem 020 ——UVa 202 - Repeating Decimals
Repeating Decimals The decimal expansion of the fraction 1/33 is , wherethe is used to indicate that the cycle 03 repeatsindefinitely with no intervening digits. In fact, the decimal原创 2014-12-10 17:40:44 · 703 阅读 · 0 评论 -
Problem 035——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 a原创 2015-02-02 19:26:23 · 900 阅读 · 0 评论 -
Problem 033——UVa 540 - Team Queue
Team Queue Queues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is not so well known, though it occurs often in everyday l原创 2015-02-02 09:28:33 · 751 阅读 · 0 评论 -
Problem 016 —— UVa 232 - Crossword Answers
Crossword Answers A crossword puzzle consists of a rectangular grid of black and white squares and two lists of definitions (or descriptions).One list of definitions is for ``words" to原创 2014-12-02 22:01:08 · 517 阅读 · 0 评论 -
Problem 005——UVa 1583 - Digit Generator
1583 - Digit Generator For a positive integer N , the digit-sum of N is defined as the sum of N itself and its digits. When M is the digitsum of N , we call N a generator ofM .For exampl原创 2014-11-10 15:54:17 · 609 阅读 · 0 评论 -
Problem 001——UVa 272 - TEX Quotes
Problem 001 TeX Quotes TeX is a typesetting language developed by Donald Knuth. It takes source text together with a few typesetting instructions and produces, one hopes, a beautiful document. B原创 2014-11-10 15:45:13 · 655 阅读 · 0 评论 -
Problem 004——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. A原创 2014-11-10 15:53:45 · 575 阅读 · 0 评论 -
Problem 037——UVa 207 - PGA Tour Prize Money
PGA Tour Prize Money A PGA (Professional Golf Association) Tour event is a golf tournament in which prize money is awarded to the best players. The tournament is broken into four rounds原创 2015-02-05 11:02:52 · 1303 阅读 · 1 评论 -
Problem 021 —— UVa 1588 - Kickdown
A research laboratory of a world-leading automobile company has received an order to create a special transmission mechanism, which allows for incredibly efficient kickdown -- an operation of switchin原创 2014-12-11 22:28:04 · 641 阅读 · 0 评论 -
Problem 036——UVa 1592 - Database
Peter studies the theory of relational databases. Table in the relational database consists of values that are arranged in rows and columns.There are different normal forms that database may adhere原创 2015-02-03 17:14:29 · 1064 阅读 · 0 评论 -
Problem 022 —— UVa 213 - Message Decoding
Message Decoding Some message encoding schemes require that an encoded message be sent in two parts. The first part, called the header, contains the characters of the message. The second原创 2015-01-25 20:32:56 · 834 阅读 · 0 评论 -
Problem 042 —— UVa 839 - Not so Mobile
Not so Mobile Before being an ubiquous communications gadget, a mobile was just a structure made of strings and wires suspending colourfull things. This kind of mobile is usually found h原创 2015-02-13 09:28:31 · 575 阅读 · 0 评论 -
Problem 046——UVa 220 - Othello
Othello Othello is a game played by two people on an 8 x 8 board, using disks that are white on one side and black on the other. One player places disks with the white side up and the ot原创 2015-02-17 10:47:37 · 965 阅读 · 0 评论 -
Problem 041—— UVa 679 - Dropping Balls
Dropping Balls A number of K balls are dropped one by one from the root of a fully binary tree structure FBT. Each time the ball being dropped first visits a non-terminal node. It then k原创 2015-02-10 10:04:23 · 583 阅读 · 0 评论 -
Problem 045——UVa 512 - Spreadsheet Tracking
Spreadsheet Tracking Data in spreadsheets are stored in cells, which are organized in rows (r) and columns (c). Some operations on spreadsheets can be applied to single cells (r,c), whil原创 2015-02-16 18:50:23 · 719 阅读 · 0 评论 -
Problem 043——UVa 1593 - Alignment of Code
You are working in a team that writes Incredibly Customizable Programming Codewriter (ICPC) which is basically a text editor with bells and whistles. You are working on a module that takes a piece of原创 2015-02-14 09:03:57 · 634 阅读 · 0 评论 -
Problem 040——UVa 11988 - Broken Keyboard (a.k.a. Beiju Text)
Broken Keyboard (a.k.a. Beiju Text)You're typing a long text with a broken keyboard. Well it's not so badly broken. The only problem with the keyboard is that sometimes the "home" key or the "en原创 2015-02-08 15:55:53 · 653 阅读 · 0 评论 -
Problem 038——UVa 514 - Rails
Rails There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time.原创 2015-02-08 10:39:36 · 567 阅读 · 0 评论 -
Problem 039——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 mul原创 2015-02-08 15:20:20 · 613 阅读 · 0 评论 -
Problem 031 ——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原创 2015-01-31 18:26:14 · 600 阅读 · 0 评论 -
Problem 013——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 anoth原创 2014-11-30 17:18:42 · 456 阅读 · 0 评论 -
Problem 011——UVa 1339 - Ancient Cipher
Ancient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent between provinces and the capital in encrypted form t原创 2014-11-26 21:08:58 · 450 阅读 · 0 评论 -
Problem 003——UVa401 - Palindromes
Problem ThreepalindromesA 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原创 2014-11-10 15:51:15 · 588 阅读 · 0 评论 -
Problem 028——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原创 2015-01-30 09:51:42 · 583 阅读 · 0 评论 -
Problem 029——UVa 12412 - A Typical Homework (a.k.a Shi Xiong Bang Bang Mang)
A Typical Homework(a.k.a Shi Xiong Bang Bang Mang)Hi, I am an undergraduate student in institute of foreign languages. As you know, C programming is a required course in our university, even if hi原创 2015-01-30 09:55:14 · 1282 阅读 · 0 评论 -
Problem 026——UVa 12108 - Extraordinarily Tired Students
When a student is too tired, he can't help sleeping in class, even if his favorite teacher is right here in front of him. Imagine you have a class of extraordinarily tired students, how long do you ha原创 2015-01-28 14:39:28 · 574 阅读 · 0 评论 -
Problem 027 ——UVa 815 - Flooded!
Flooded! To enable homebuyers to estimate the cost of flood insurance, a real-estate firm provides clients with the elevation of each 10-meter by 10-meter square of land in regions where原创 2015-01-29 10:02:49 · 648 阅读 · 0 评论 -
Problem 023 ——UVa 1589 - Xiangqi
由于题目格式原因,此题不提供题目。#include#include#include#includeusing namespace std;enum {no,yes};bool attack[18][18];char p[18][18];void re(){ for(int i=0; i<12; i++) attack[i][3]=attack[i]原创 2015-01-26 18:15:15 · 745 阅读 · 0 评论 -
Problem 007——UVa 1585 - Score
There is an objective test result such as ``OOXXOXXOOO". An `O' means a correct answer of a problem and an `X' means a wrong answer. The score of each problem of this test is calculated by itself and原创 2014-11-10 15:56:18 · 950 阅读 · 0 评论 -
Problem 025——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 are原创 2015-01-28 09:30:17 · 593 阅读 · 0 评论 -
Problem 018 ——UVa 10340 - All in All
Problem EAll in AllInput: standard inputOutput: standard outputTime Limit: 2 secondsMemory Limit: 32 MBYou have devised a new encryption technique whichencodes a message by inserting betwe原创 2014-12-04 07:48:35 · 523 阅读 · 0 评论 -
Problem 002——UVa 10082 - WERTYU
Problem 002: WERTYUA common typing error is to place the hands on the keyboard one row to the right of the correct position. So "Q" is typed as "W" and "J" is typed as "K" and so on. You are to原创 2014-11-10 15:50:41 · 743 阅读 · 0 评论 -
Problem 006——UVa 1584 - Circular Sequence
Some DNA sequences exist in circular forms as in the following figure, which shows a circular sequence ``CGAGTCAGCT", that is, the last symbol ``T" in ``CGAGTCAGCT" is connected to the first symbol ``原创 2014-11-10 15:56:14 · 544 阅读 · 0 评论 -
Problem 017 ——UVa 1368 -DNA Consensus String
Figure 1.DNA (Deoxyribonucleic Acid) is the molecule which contains the genetic instructions. It consists of four different nucleotides, namely Adenine, Thymine, Guanine, and Cytosine as shown in Fi原创 2014-12-04 07:46:19 · 460 阅读 · 0 评论 -
Problem 032——UVa 12096 - The SetStack Computer
#include#include#include#include#include#include#includeusing namespace std;#define fuck x1.begin(),x1.end(),x2.begin(),x2.end(),inserter(x,x.begin())typedef set Set;map id;vector sid;in原创 2015-02-01 09:26:58 · 578 阅读 · 0 评论 -
Problem 030——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 he原创 2015-01-31 16:41:09 · 629 阅读 · 0 评论 -
Problem 014 —— 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原创 2014-12-01 17:26:55 · 499 阅读 · 0 评论
分享