東京大学 情報理工学系研究科 創造情報学専攻 2022年8月実施 プログラミング 第1問
Author
Description (English)
Suppose that we have a maze on a square board with
The walls composing a maze are denoted as follows.
The upper wall of the cell

The layout of walls composing a maze is stored as a character string such as:
0,1,1,0,13,6,8,1
This represents that there are four walls
(1) We have a maze on maze1.txt. Draw this maze on the answer sheet so that the layout of the walls will be clearly depicted.
(2) We have a maze on maze2.txt. Count the number of the dead-end cells, which are surrounded with three walls. Write down that number on the answer sheet.
(3) We have a maze on maze3.txt. The start is the cell
(4) We have ten mazes on maze10.txt to maze19.txt. Which maze satisfies that there exists exactly one path between any pair of two cells in the maze? Write down the names of all the files in which the layouts of the walls are stored for such a maze.