![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法竞赛入门经典例题
文章平均质量分 81
Cabbage11233333
某学校的一只
展开
-
Where is the Marble? Uva_10474 ——最为简单的排序和检索
Raju and Meena love to play with Marbles. They have got a lot ofmarbles with numbers written on them. At the beginning, Raju wouldplace the marbles one after another in ascending order of the numbersw...原创 2018-03-08 11:11:46 · 178 阅读 · 0 评论 -
The Dole Queue——Uva_133
In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour RhinocerosParty has decided on the following strategy. Every day all dole applicants will be placed in a largeci...原创 2018-03-05 21:24:28 · 279 阅读 · 0 评论 -
Database——Uva 1592
Peter studies the theory of relational databases. Table in the relational database consists of values thatare arranged in rows and columns.There are different normal forms that database may adhere to....原创 2018-03-12 17:34:41 · 299 阅读 · 0 评论 -
刽子手游戏——Uva 489
In “Hangman Judge,” you are to write a program that judges a series of Hangman games. For eachgame, the answer to the puzzle is given as well as the guesses. Rules are the same as the classic gameof h...原创 2018-03-04 21:54:38 · 307 阅读 · 0 评论 -
Unix is ——Uva 400
The computer company you work for is introducing a brand new computer line and is developing anew Unix-like operating system to be introduced along with the new computer. Your assignment is towrite th...原创 2018-03-09 21:54:25 · 293 阅读 · 0 评论 -
The SetStack Computer——Uva 12096
Background from Wikipedia: “Set theory is abranch of mathematics created principally by theGerman mathematician Georg Cantor at the end ofthe 19th century. Initially controversial, set theoryhas come ...原创 2018-03-09 17:03:40 · 240 阅读 · 0 评论 -
Ananagrams——Uva 156
Most crossword puzzle fans are used to anagrams — groups of words with the same letters in di erentorders — for example OPTS, SPOT, STOP, POTS and POST. Some words however do not have thisattribute, n...原创 2018-03-08 17:05:17 · 151 阅读 · 0 评论 -
Andy's First Dictionary ——Uva 10815
Andy, 8, has a dream - he wants to produce hisvery own dictionary. This is not an easy task forhim, as the number of words that he knows is,well, not quite enough. Instead of thinking up allthe words ...原创 2018-03-08 16:31:10 · 191 阅读 · 0 评论 -
The Blocks Problem ——Uva 101
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 world in which a rob...原创 2018-03-08 11:59:56 · 204 阅读 · 0 评论 -
Message Decoding——Uva_213
我怎么说,这道题我就是纯粹没读懂题。。。头脑宛如拧在一起的麻花。。。英语水平有待提高。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....原创 2018-03-05 22:13:10 · 224 阅读 · 0 评论