算法竞赛入门经典(3)
文章平均质量分 79
DevinFan
这个作者很懒,什么都没留下…
展开
-
UVA - 1586 Molar mass
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原创 2015-01-07 20:59:08 · 447 阅读 · 0 评论 -
UVA - 227 Puzzle
Puzzle A children's puzzle that was popular 30 years ago consisted of a 5x5 frame which contained 24 small squares of equal size. A unique letter of the alphabet was printed on each smal原创 2015-01-08 17:39:00 · 435 阅读 · 0 评论 -
UVA - 1225 Digit Counting
Trung is bored with his mathematics homeworks. He takes a piece of chalk and starts writing a sequence of consecutive integers starting with 1 to N(1 N . After that, he counts the number of times e原创 2015-01-07 20:53:26 · 376 阅读 · 0 评论 -
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 ``原创 2015-01-07 21:09:26 · 388 阅读 · 0 评论 -
UVa - 455 Periodic Strings
Periodic Strings A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example, the string "abcabcab原创 2015-01-07 20:46:10 · 388 阅读 · 0 评论 -
UVA - 10340 All in All
Problem E All in All Input: standard input Output: standard output Time Limit: 2 seconds Memory Limit: 32 MB You have devised a new encryption technique which encodes a message by inserting betw原创 2015-01-08 17:49:31 · 312 阅读 · 0 评论 -
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原创 2015-01-09 15:04:58 · 346 阅读 · 0 评论 -
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原创 2015-01-09 18:11:43 · 719 阅读 · 0 评论 -
UVA - 1587 Box
Ivan works at a factory that produces heavy machinery. He has a simple job -- he knocks up wooden boxes of different sizes to pack machinery for delivery to the customers. Each box is a rectangular原创 2015-01-09 12:45:04 · 492 阅读 · 0 评论