- 博客(23)
- 问答 (4)
- 收藏
- 关注
原创 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 numbered as in Figure 1.
2015-07-29 22:27:06 412
原创 Squares
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 requires that the players count the number of squares
2015-07-29 22:21:35 360
原创 Xiangqi
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4464题目链接。题目复制过来我自己都不忍心看了,效果太差。就是给一个象棋残局,判断是否将死,黑方只剩老将,红方有将,车,马,炮类型的棋,除了将,其他不是一定有。想法就是标记棋盘,看哪些地方红方可
2015-07-29 22:20:30 377
原创 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), while others can be applied to entire
2015-07-29 22:12:39 435
原创 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 part contains a pattern that r
2015-07-29 22:05:17 431
原创 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 applicants will be placed in a large
2015-07-29 21:59:52 370
原创 Hangman Judge
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 classic game
2015-07-29 21:53:37 267
原创 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
2015-07-29 21:47:31 379
原创 DNA Consensus String
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 Figure 1. If
2015-07-29 21:43:00 312
原创 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 be written left to right across
2015-07-29 21:39:43 429
原创 Puzzle
Description Download as PDF 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 e
2015-07-22 17:24:28 490
原创 Periodic Strings
Description Download as PDF 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, th
2015-07-22 17:20:36 1422
原创 Digit Counting
Description Download as PDF 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 < 10000) . After
2015-07-22 16:52:14 326
原创 Molar mass
Description Download as PDF 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 t
2015-07-22 16:50:06 378
原创 Score
Description Download as PDF 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 i
2015-07-22 16:48:06 571
原创 Circular Sequence
Description Download as PDF Some DNA sequences exist in circular forms as in the following figure, which shows a circular sequence CGAGTCAGCT", that is, the last symbolT” in CGAGTCAGCT" is connected
2015-07-22 16:45:11 237
原创 Digit Generator
Description Download as PDF 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 M . For example, th
2015-07-22 16:42:23 450
原创 Master-Mind Hints
Description 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
2015-07-22 16:39:06 374
原创 Palindromes
Description 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 r
2015-07-22 16:36:45 306
原创 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
2015-07-22 16:34:18 257
原创 TEX Quotes
Description 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. Beautiful document
2015-07-22 16:30:50 341
原创 序列
Description 数列A满足An = An-1 + An-2 + An-3, n >= 3 编写程序,给定A0, A1 和 A2, 计算A99 Input 输入包含多行数据 每行数据包含3个整数A0, A1, A2 (0 <= A0, A1, A2 <= 32767) 数据以EOF结束 Output 对于输入的每一行输出A99的值 Sample Input 1 1 1 Sa
2015-07-17 23:17:34 302
原创 小孩报数问题
Description 有N个小孩围成一圈,给他们从1开始依次编号,现指定从第W个开始报数,报到第S个时,该小孩出列,然后从下一个小孩开始报数,仍是报到S个出列,如此重复下去,直到所有的小孩都出列(总人数不足S个时将循环报数),求小孩出列的顺序。 Input 第一行输入小孩的人数N(N<=64) 接下来每行输入一个小孩的名字(人名不超过15个字符) 最后一行输入W,S (W < N),
2015-07-17 23:14:03 1870
空空如也
opencv识别特殊的指针式仪器的指针
2016-03-03
使用opencv对老式水表识别
2016-02-24
MFC中list control中添加进度条
2015-08-29
c++用socket连接,如何把服务器的本地文件夹目录传给客户端
2015-08-08
TA创建的收藏夹 TA关注的收藏夹
TA关注的人