- 博客(7)
- 收藏
- 关注
原创 Maze
MazePavel loves grid mazes. A grid maze is an n × m rectangle maze where each cell is either empty, or is a wall. You can go from one cell to another only if both cells are empty and have a common side.Pavel drew a grid maze with all empty cells forming
2021-02-09 22:18:05
122
原创 Prime Ring Problem
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, …, n into each circle separately, and the sum of numbers in two adjacent circles should be a prime.Note: the number of first circle should always be 1.Inputn (0 < n < 20
2021-02-09 22:10:37
106
原创 Packets
PacketsA factory produces products packed in square packets of the same height h and of the sizes 1 * 1, 2 * 2, 3 * 3, 4 * 4, 5 * 5, 6 * 6. These products are always delivered to customers in the square parcels of the same height h as the products have an
2021-02-09 22:06:26
195
原创 Sudoku
SudokuSudoku is a very simple task. A square table with 9 rows and 9 columns is divided to 9 smaller squares 3x3 as shown on the Figure. In some of the cells are written decimal digits from 1 to 9. The other cells are empty. The goal is to fill the empty
2021-02-07 21:27:06
242
1
原创 Prime Path
Prime PathThe ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices.— It is a matter of security to change such things every now and the
2021-02-07 21:11:30
169
原创 Digital Square
Digital SquareGiven an integer N,you should come up with the minimum nonnegative integer M.M meets the follow condition: M2%10x=N (x=0,1,2,3…)InputThe first line has an integer T( T< = 1000), the number of test cases.For each case, each line contain
2021-02-06 21:32:49
137
原创 文件系统 HDU - 1413
文件系统Ignatius做了一个文件系统,为了测试他的文件系统是否能正常工作,他打算对他的文件系统做一些测试.刚开始的时候文件系统里只有一个根目录.Ignatius将输入一系列合法的文件操作命令,请你给出文件系统应该给出的相应提示信息.Ignatius的文件系统的文件操作命令包括:CD [directory name] : 进入当前目录下名为[directory name]的子目录,如果成功,系统应提示"success",否则提示"no such directory".MD [directory
2021-02-03 22:14:54
177
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人