![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UVAOJ
文章平均质量分 75
nefu2015214119
这个作者很懒,什么都没留下…
展开
-
uvaoj-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原创 2016-02-23 18:17:00 · 348 阅读 · 0 评论 -
uvaoj-10340:子序列
水题,题目就不贴了;题解:思路很简单,一个指针始终跟随着输入的第一个串;但是需要注意的是,字符数组要开的大一点,不然会RE;另外听说用scanf会导致TLE,我没试过,直接用的cin;code:#include #include #define maxn 100000+10using namespace std;char ins[maxn],cmps[m原创 2016-02-10 23:08:23 · 321 阅读 · 0 评论 -
uvaoj-489:刽子手
原题:In ``Hangman Judge,'' you are to write a program that judges a series of Hangman games. For each game, the answer to the puzzle is given as well as the guesses. Rules are the same as the classi原创 2016-02-02 16:42:14 · 560 阅读 · 0 评论 -
uvaoj-133:约瑟夫环的模拟
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 applicants will be placed in a larg原创 2016-02-02 19:19:08 · 555 阅读 · 0 评论 -
uvaoj-455:周期串
A character string is said to have periodk if it can be formed by concatenating one or more repetitions of another string of lengthk. For example, the string "abcabcabcabc" has period 3, since it原创 2016-02-02 20:33:49 · 615 阅读 · 0 评论 -
uvaoj-1368:DNA序列
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 Figu原创 2016-02-10 13:22:01 · 459 阅读 · 0 评论 -
uvaoj-202:循环小数
The decimal expansion of the fraction 1/33 is 0.03, where the 03 is used to indicate that the cycle 03 repeats indefinitely with no intervening digits. In fact, the decimal expansion of every rational原创 2016-02-10 21:40:56 · 464 阅读 · 0 评论 -
uvaoj-12096:the setstack computer
Background from Wikipedia: Set theory is a branch ofmathematics created principally by the German mathe-matician Georg Cantor at the end of the 19th century.Initially controversial, set theory h原创 2016-02-24 01:16:55 · 641 阅读 · 0 评论 -
uvaoj-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原创 2016-02-24 10:59:48 · 695 阅读 · 0 评论 -
uvaoj-1594:ducci sequence
A Ducci sequence is a sequence of n-tuples of integers. Given an n-tuple of integers (a1,a2,···,an), the next n-tuple in the sequence is formed by taking the absolute differences of neighboring integer原创 2016-02-24 12:47:29 · 335 阅读 · 0 评论 -
uvaoj-10925:throwing cards away
Given is an ordered deck of n cards numbered 1 to n with card 1 at the top and card n at the bottom. The following operation is performed as long as there are at least two cards in the deck:原创 2016-02-24 15:06:40 · 465 阅读 · 0 评论 -
uvaoj-10763:foreign change
Your non-profit organization (iCORE - international Confederation of Revolver Enthusiasts) coordinates a very successful foreign student exchange program. Over the last few years, demand has sky-rocke原创 2016-02-24 16:05:31 · 376 阅读 · 0 评论 -
uvaoj-10391:conpound words
You are to find all the two-word compound words in a dictionary. A two-word compound word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary.Input原创 2016-02-24 18:07:32 · 463 阅读 · 0 评论 -
uvaoj-213:字符串
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 p原创 2016-02-12 10:25:41 · 349 阅读 · 0 评论 -
uvaoj-1585:得分
ScoreThere 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原创 2016-02-12 13:49:50 · 633 阅读 · 0 评论 -
uvaoj-1586:分子量
An organic compound is any member of a large class of chemical compounds whose molecules contain carbon. The molar mass of an organic compound is the mass of one mole of the organic compound. The mola原创 2016-02-12 14:27:52 · 616 阅读 · 0 评论 -
uvaoj-232:crossword answer
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 be written left to right across原创 2016-02-23 20:33:06 · 552 阅读 · 0 评论 -
uvaoj-136:ugly number
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, 1 is included.Write原创 2016-02-23 12:02:28 · 327 阅读 · 0 评论 -
uvaoj-400:Unix Is
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 assignment is to write原创 2016-02-23 15:15:33 · 751 阅读 · 0 评论 -
uvaoj-540: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 life. At lunc原创 2016-02-23 10:50:45 · 522 阅读 · 0 评论 -
uvaoj-156:反片语
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 have this attribute原创 2016-02-16 15:12:41 · 623 阅读 · 0 评论 -
uvaoj-10815:安迪的第一个字典
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 words that he knows is, well, not quite enough. Instead of thinking up all the wo原创 2016-02-16 10:21:54 · 580 阅读 · 0 评论 -
uvaoj-101:小木块
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 robotics (STRIPS) used a block wo原创 2016-02-15 15:58:13 · 545 阅读 · 0 评论 -
uvaoj-12474:大理石在哪里
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 another in ascending order of the number原创 2016-02-14 22:21:01 · 728 阅读 · 0 评论 -
uvaoj-340:猜数字游戏的提示
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. At the beginning of a game, t原创 2016-02-13 13:04:59 · 822 阅读 · 0 评论 -
uvaoj-401:回文词
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 the string is read from l原创 2016-02-13 12:16:16 · 420 阅读 · 0 评论 -
uvaoj-10082:WERTYU
A 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 decode a message typed原创 2016-02-13 10:49:05 · 475 阅读 · 0 评论 -
uvaoj-1225:数数字
原题没找到。。贴上链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=247&problem=3666&mosmsg=Submission+received+with+ID+16836885题解:两种方法,第一种就是正常算就好啦,虽原创 2016-02-12 14:47:52 · 479 阅读 · 0 评论 -
uvaoj-1595:symmetry
1595 - SymmetryThe figure shown on the left is left-right symmetric as it is possible to fold the sheet of paper along a vertical line, drawn as a dashed line, and to cut the figure into two ide原创 2016-02-25 20:22:54 · 516 阅读 · 0 评论