-->
当前位置:首页 > 题库

PROGRAMMING:Wang Fangfang of small Taotao series

Luz5年前 (2021-05-10)题库409
Little Taotao also has a cute Wang Fangfang in his family. As a dog, he is crazy about the road. He can't find his way home.
Every time little Taotao had to find him several blocks away and take him home.
###Input format:
An integer m and an integer n (0 < m < 100) (0 < n < 100)
They represent the ranks of the map
Enter a map
0 is the road, t is the location of small Taotao, W is the location of Wang Fangfang
The default small Taotao movement speed is one unit length per second
Small Taotao holding Wang Fangfang moving speed is two seconds a unit length
###Output format:
Small Taotao starts from the starting point, finds Wang Fangfang, and then returns to the origin time
###Input example:
Here is a set of inputs. For example:
```in
3 3
T00
000
00W
```
###Output example:
The corresponding output is given here. For example:
```out
twelve
```







answer:If there is no answer, please comment