#P14614. [2019 KAIST RUN Fall] Bigger Sokoban 40k
[2019 KAIST RUN Fall] Bigger Sokoban 40k
题目描述
is a famous puzzle game, where the player moves around in the -size grid, and pushes -size boxes to -size storage locations.
is a possible variation of Sokoban, but the size of boxes and storage locations are bigger than . This problem especially uses for both.
The rule of Bigger Sokoban is the same as Sokoban. Each square in the grid is an empty square or a wall. Some area of empty squares contain -size box each and some area of empty squares are marked as -size storage location each.
The player is in the grid and may move up, down, left, right to the adjacent empty squares, but should not go through walls, boxes, or outside of the grid. If the player tries to move into a box, it is pushed to the adjacent squares in that direction. Boxes must not be pushed to other boxes, walls, or outside of the grid, and they cannot be pulled. The number of boxes is equal to the number of storage locations. The puzzle is solved when all boxes are at the storage locations.
Your mission is to make a Bigger Sokoban grid that needs at least moves to solve. To make the situation easier, the grid must satisfy the following constraints:
- .
- The grid contains box and storage location.
- The player, the box, and the storage location must not intersect.
输入格式
There is no input for this problem.
输出格式
In the first line, print two space-separated integers ; they describe the size of the grid.
In each of the following lines, print a string of length ; it describes each row of the grid. Each string must consist of $\texttt{.}, \texttt{\#}, \texttt{P}, \texttt{B}, \texttt{S}$; each character means empty square, wall, player, box, storage location respectively.
The grid must contain exactly one , exactly four , and exactly four . and each must form a square. The grid, of course, must be solvable.
Note that the sample output is only to demonstrate a well-formatted output. Since it can be solved in less than 40,000 moves, it is not a correct answer.
<There are no inputs>
5 6
....SS
....SS
.#BB#.
..BB.P
......
京公网安备 11011102002149号