摘要: Description Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet... 阅读全文
posted @ 2015-01-16 23:10 WhyWhy。 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Description 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享 这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的... 阅读全文
posted @ 2015-01-16 23:04 WhyWhy。 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectang... 阅读全文
posted @ 2015-01-16 23:01 WhyWhy。 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Description 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0,}; 它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能... 阅读全文
posted @ 2015-01-16 22:59 WhyWhy。 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Description Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire esca... 阅读全文
posted @ 2015-01-16 22:57 WhyWhy。 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Problem Description Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each gr... 阅读全文
posted @ 2015-01-16 22:49 WhyWhy。 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Description You are given two pots, having the volume of A and B liters respectively. The following operations can be performed:FILL(i) fill the po... 阅读全文
posted @ 2015-01-16 22:39 WhyWhy。 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Description A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two st... 阅读全文
posted @ 2015-01-16 22:35 WhyWhy。 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Description The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the ... 阅读全文
posted @ 2015-01-16 22:26 WhyWhy。 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Description Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits... 阅读全文
posted @ 2015-01-16 22:23 WhyWhy。 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for co... 阅读全文
posted @ 2015-01-16 11:25 WhyWhy。 阅读(1845) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100... 阅读全文
posted @ 2015-01-16 11:13 WhyWhy。 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fi... 阅读全文
posted @ 2015-01-16 11:08 WhyWhy。 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 标准的回溯的问题,直接按行递归,就像八皇后的递归。代码如下:#in... 阅读全文
posted @ 2015-01-16 11:03 WhyWhy。 阅读(275) 评论(0) 推荐(0) 编辑