2015年7月24日
摘要: 题目:DescriptionDue to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 =m||c=n)... 阅读全文
posted @ 2015-07-24 21:19 最爱剪刀手 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 题目:DescriptionA robot has to patrol around a rectangular area which is in a form ofmxngrid (mrows andncolumns). The rows are labeled from 1 tom. The c... 阅读全文
posted @ 2015-07-24 21:14 最爱剪刀手 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 题目:DescriptionA friend of you is doing research on theTraveling Knight Problem (TKP)where you are to find the shortest closed tour of knight moves tha... 阅读全文
posted @ 2015-07-24 21:09 最爱剪刀手 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 题目:DescriptionLittle Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capita... 阅读全文
posted @ 2015-07-24 21:02 最爱剪刀手 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 题目:Description某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报到二的出列,剩下的向小序号方向靠拢,再从头开始进行一至三报数,凡报到三的出列,剩下的向小序号方向靠拢,继续从头开始进行一至二报数。。。,以后从头开始轮流进行一至二... 阅读全文
posted @ 2015-07-24 20:56 最爱剪刀手 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 题目:DescriptionTwo bored soldiers are playing card war. Their card deck consists of exactlyncards, numbered from1ton,all values are different. They div... 阅读全文
posted @ 2015-07-24 20:51 最爱剪刀手 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 题目:You are given a string consisting of parentheses()and[]. A string of this type is said to becorrect:(a)if it is the empty string(b)if A and B are c... 阅读全文
posted @ 2015-07-24 18:38 最爱剪刀手 阅读(107) 评论(0) 推荐(0) 编辑