随笔分类 - vj刷题练习
刷题练习
摘要: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 t
阅读全文
摘要:A children’s board game consists of a square array of dots that contains lines connecting some of the pairs of adjacent dots. One part of the game req
阅读全文
摘要:You are working in a team that writes Incredibly Customizable Programming Codewriter (ICPC) which is basically a text editor with bells and whistles.
阅读全文
摘要:Peter studies the theory of relational databases. Table in the relational database consists of values that are arranged in rows and columns. There are
阅读全文
摘要: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
阅读全文
摘要:You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Be
阅读全文
摘要: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 delive
阅读全文
摘要: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 w
阅读全文
摘要:Ancient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent bet
阅读全文
摘要:DNA (Deoxyribonucleic Acid) is the molecule which contains the genetic instructions. It consists of four different nucleotides, namely Adenine, Thymin
阅读全文
摘要:A crossword puzzle consists of a rectangular grid of black and white squares and two lists of definitions (or descriptions). One list of definitions i
阅读全文
摘要: 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,
阅读全文
摘要: A children’s puzzle that was popular 30 years ago consisted of a 5×5 frame which contained 24 small squares of equal size. A unique letter of the al
阅读全文
摘要: 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 th
阅读全文
摘要: 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
阅读全文
摘要: 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
阅读全文
摘要: 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
阅读全文
摘要: 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 bec
阅读全文
摘要: 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 of
阅读全文