2018寒假第一周
Greedy_
这个作者很懒,什么都没留下…
展开
-
H - Farm Irrigation
Benny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in these squares. Different square has a different type of ...原创 2018-01-23 22:19:11 · 266 阅读 · 0 评论 -
J - Red and Black
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent tiles. But he can'原创 2018-01-23 22:25:43 · 1371 阅读 · 0 评论 -
C - Oil Deposits
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides th原创 2018-01-23 16:22:15 · 227 阅读 · 0 评论 -
D - Parentheses Balance
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 A and B are correct, AB is correct, (c) if A is correct原创 2018-01-23 16:34:59 · 326 阅读 · 0 评论 -
F - Knight Moves
A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find theshortest closed tour of knight moves that visits each square of a given set of n squares on a chessboar...原创 2018-01-23 16:41:41 · 370 阅读 · 0 评论 -
B - Tempter of the Bone
The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He realized that the bone原创 2018-01-26 16:06:52 · 175 阅读 · 0 评论