2021牛客暑期多校训练营2.I Penguins BFS广搜 简单
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2021牛客暑期多校训练营2.I Penguins BFS广搜 简单相关的知识,希望对你有一定的参考价值。
2021牛客暑期多校训练营2.I Penguins BFS广搜 简单
火车上没法写,来补题了…
链接:https://ac.nowcoder.com/acm/contest/11253/I
题目描述
Lovely penguins is a tiny game in which the player controls two penguins.
The game holds in two
We number the grid in row (starting from the up), column (starting from the left)
The penguins move in four directions: up, down, left, right, exactly one step once. If its way is blocked, or it reaches the border, then this movement is omitted.
The player also moves the penguins in four directions, but the behavior of the two penguins is mirrored:
- L : left penguin moves to left, right penguin moves to right.
- R : left penguin moves to right, right penguin moves to left.
- U : both move upwards.
- D : both move downwards.
An operation can be omitted on one penguin but works on another.
The left penguin starts from and wants to move to .The right penguin starts from 以上是关于2021牛客暑期多校训练营2.I Penguins BFS广搜 简单的主要内容,如果未能解决你的问题,请参考以下文章