摘要: Description A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves tha 阅读全文
posted @ 2015-07-21 08:40 江南何采莲 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Description Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital 阅读全文
posted @ 2015-07-20 20:33 江南何采莲 阅读(262) 评论(0) 推荐(0) 编辑
摘要: Description 某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报到二的出列,剩下的向小序号方向靠拢,再从头开始进行一至三报数,凡报到三的出列,剩下的向小序号方向靠拢,继续从头开始进行一至二报数。。。,以后从头开始轮流进行一至二报数 阅读全文
posted @ 2015-07-20 19:41 江南何采莲 阅读(270) 评论(0) 推荐(0) 编辑
摘要: Description You are given a string consisting of parentheses () and []. A string of this type is said to be correct: (a)if it is the empty string(b)if 阅读全文
posted @ 2015-07-20 08:57 江南何采莲 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Description The only printer in the computer science students' union is experiencing an extremely heavy workload. Sometimes there are a hundred jobs i 阅读全文
posted @ 2015-07-20 07:53 江南何采莲 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 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 theconcatenation of exac 阅读全文
posted @ 2015-07-19 22:02 江南何采莲 阅读(425) 评论(1) 推荐(1) 编辑
摘要: Description I mean your borrowers of books - those mutilators of collections, spoilers of the symmetry of shelves, and creators of odd volumes. - (Cha 阅读全文
posted @ 2015-07-19 21:24 江南何采莲 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Your non-profit organization (iCORE - international Confederation of Revolver Enthusiasts) coordinates a very successful foreign student exchange prog 阅读全文
posted @ 2015-07-17 19:36 江南何采莲 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Description The 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 阅读全文
posted @ 2015-07-17 19:09 江南何采莲 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 十进制-十六进制 Time Limit: 1 Sec Memory Limit: 128 MB Description 把十进制整数转换为十六进制,格式为0x开头,10~15由大写字母A~F表示。 Input 每行一个整数x,0<= x <= 2^31。 Output 每行输出对应的八位十六进制整数 阅读全文
posted @ 2015-07-17 16:05 江南何采莲 阅读(228) 评论(0) 推荐(0) 编辑